【问题标题】:Unable to sync gradle android studio 4.0无法同步 gradle android studio 4.0
【发布时间】:2020-11-08 14:40:14
【问题描述】:
Unable to load class 'org.jetbrains.kotlin.gradle.AbstractKotlinGradleModelBuilder'.
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.

我已尝试更新平台工具,但仍然无法正常工作。几天前它工作正常,我不明白突然发生了什么。

此外,在运行模拟器时,它会显示无法找到 adb,但即使在显示该错误后模拟器也会运行。

【问题讨论】:

  • 联网后点击此重新下载依赖和同步项目(需要网络)
  • 我有一个稳定的网络,几天前它工作正常。我重新下载了同样的错误@MdAman

标签: android android-studio gradle android-emulator adb


【解决方案1】:

尝试通过以下步骤更新 kotlin 插件:

Double shift -> Plugins -> Updates -> Search Kotlin -> Update! -> Restart Android Studio

【讨论】:

    猜你喜欢
    • 2023-04-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多