2021-03-30 18:59 阅读 25



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 @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条回答 默认 最新

  • 已采纳
    weixin_45864004 程序猿大波 2021-03-30 19:34

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

    点赞 1 评论 复制链接分享