gpt4 book ai didi

java - 安卓工作室 : Gradle Build fails with error: Unable to load class 'com.android.build.gradle.ndk.NdkPlugin'

转载 作者:太空宇宙 更新时间:2023-11-03 13:21:36 26 4
gpt4 key购买 nike

我刚刚将构建工具和 gradle 插件版本升级到 0.14.0。

Gradle 版本 - 2.1安卓工作室 - 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 组件,但我仍然看到这个问题。

如有任何帮助,我们将不胜感激。

最佳答案

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

关于java - 安卓工作室 : Gradle Build fails with error: Unable to load class 'com.android.build.gradle.ndk.NdkPlugin' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27058051/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com