JavaWizard-M 2021-03-30 10:59 采纳率: 50%
浏览 81
已采纳

idea运行一个android项目报如下错误,找了一天错误还没解决,求路过的大佬指点

麻烦大佬指教一下,给点思路,谢谢

class com.sun.proxy.$Proxy190 cannot be cast to class org.jetbrains.plugins.gradle.model.DefaultExternalProject (com.sun.proxy.$Proxy190 and org.jetbrains.plugins.gradle.model.DefaultExternalProject are in unnamed module of loader com.intellij.ide.plugins.cl.PluginClassLoader @32af2fb1)
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 (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)

Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.

In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
 

  • 写回答

1条回答 默认 最新

  • 「已注销」 2021-03-30 11:34
    关注

    gradle里面的依赖没有下载下来,需要下载然后解析,最后重新gradle一下。配置问题或者网络不好,android项目建议使用android studio运行

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部