简体   繁体   中英

Android Studio: Gradle Build fails with error: Unable to load class 'com.android.build.gradle.ndk.NdkPlugin'

I have just upgraded my build tools and my gradle plugin version to 0.14.0.

Gradle version - 2.1 Android Studio - 0.9.3

When m trying to do a build of my project I se the following error -

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.

I've tried both the above options and also upgraded all my sdk components and I still see this issue.

Any help would be greatly appreciated.

尝试清理项目并重新构建。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM