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

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

Gradle version - 2.1 Android Studio - 0.9.3

When I try to build my project, I see the following error:

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

  • Gradle's dependency cache may get corrupted (this sometimes happens after network timeouts for connection.) Reboot dependencies and sync project (network required)
  • Gradle State The build process may be corrupted. Stop Gradle daemons and sync project
If your Gradle processes are damaged, you can also try closing the IDE and then killing all Java processes.

I tried both of the above options and also updated all my sdk components and I can still see this issue.

Any help would be greatly appreciated.

+3


source to share


1 answer


Try to clean the project and rebuild.



+4


source







All Articles