简体   繁体   English

无法同步 gradle android studio 4.0

[英]Unable to sync gradle android studio 4.0

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.

I have tried updating platform tools still it is not working.我已尝试更新平台工具,但仍然无法正常工作。 Few days back it was working fine I don't understand what happened suddenly.几天前它工作正常,我不明白突然发生了什么。

Also while running emulator it is showing Unable to locate adb but emulator runs even after showing that error.此外,在运行模拟器时,它显示Unable to locate adb但即使在显示该错误后模拟器也会运行。

在此处输入图像描述 在此处输入图像描述

Try to update kotlin plugin by going through these steps:尝试通过以下步骤更新 kotlin 插件:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM