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

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 19:34
    关注

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

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

报告相同问题?

悬赏问题

  • ¥30 STM32 INMP441无法读取数据
  • ¥100 求汇川机器人IRCB300控制器和示教器同版本升级固件文件升级包
  • ¥15 用visualstudio2022创建vue项目后无法启动
  • ¥15 x趋于0时tanx-sinx极限可以拆开算吗
  • ¥500 把面具戴到人脸上,请大家贡献智慧
  • ¥15 任意一个散点图自己下载其js脚本文件并做成独立的案例页面,不要作在线的,要离线状态。
  • ¥15 各位 帮我看看如何写代码,打出来的图形要和如下图呈现的一样,急
  • ¥30 c#打开word开启修订并实时显示批注
  • ¥15 如何解决ldsc的这条报错/index error
  • ¥15 VS2022+WDK驱动开发环境