2014-11-21 65 views
3

我剛剛將我的構建工具和我的gradle插件版本升級到0.14.0。Android Studio:Gradle構建失敗,錯誤:無法加載類'com.android.build.gradle.ndk.NdkPlugin'

搖籃版本 - 2.1 Android的工作室 - 0.9.3

當想要做我的項目的建設我本身在下面的錯誤 -

Error:Unable to load class 'com.android.build.gradle.ndk.NdkPlugin'. Possible causes for this unexpected error include:

  • Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network)
  • The state of a Gradle build process may be corrupt. Stop Gradle daemons and sync project
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.

我都試過上述選項並且升級了我所有的SDK組件,我仍然看到這個問題。

任何幫助將不勝感激。

+2

你是否也試圖清理你的項目? – 2014-11-21 09:33:25

+0

它工作:)非常感謝 – Tushar 2014-11-21 09:52:51

回答

4

嘗試清理您的項目並重新構建。

+0

沒有爲我工作 – 2017-11-04 07:09:35

相關問題