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

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运行

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

报告相同问题?

悬赏问题

  • ¥15 wpf界面一直接收PLC给过来的信号,导致UI界面操作起来会卡顿
  • ¥15 init i2c:2 freq:100000[MAIXPY]: find ov2640[MAIXPY]: find ov sensor是main文件哪里有问题吗
  • ¥15 运动想象脑电信号数据集.vhdr
  • ¥15 三因素重复测量数据R语句编写,不存在交互作用
  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒