[英]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插件版本升级到0.14.0。
Gradle version - 2.1 Android Studio - 0.9.3 Gradle版本 - 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'.
错误:无法加载类'com.android.build.gradle.ndk.NdkPlugin'。 Possible causes for this unexpected error include:
此意外错误的可能原因包括:
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
- Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) Re-download dependencies and sync project (requires network)
Gradle的依赖缓存可能已损坏(这有时会在网络连接超时后发生。)重新下载依赖项并同步项目(需要网络)
- The state of a Gradle build process may be corrupt.
Gradle构建过程的状态可能已损坏。 Stop Gradle daemons and sync project
停止Gradle守护进程并同步项目
在损坏的Gradle进程的情况下,您还可以尝试关闭IDE,然后终止所有Java进程。
I've tried both the above options and also upgraded all my sdk components and I still see this issue. 我已经尝试了上述两个选项,并且还升级了我的所有sdk组件,但我仍然看到了这个问题。
Any help would be greatly appreciated. 任何帮助将不胜感激。
尝试清理项目并重新构建。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.