gpt4 book ai didi

android - 更新到 A.S. 后出现错误 :Could not initialize class com. android.ide.common.util.ReadWriteProcessLock 2.4

转载 作者:IT老高 更新时间:2023-10-28 21:38:51 32 4
gpt4 key购买 nike

升级到 Android Studio 2.4 Preview 4 后出现此错误

Error:Could not initialize class com.android.ide.common.util.ReadWriteProcessLock

最佳答案

经过一番研究,我发现这是一个已知的错误,幸运的是,解决方案非常简单。

来自 release notes :

After updating the Android plugin version, you need to stop the Gradle daemon to apply the update (Issue 267099). Otherwise, Gradle sync and builds fail with the following error:

Could not initialize class com.android.ide.common.util.ReadWriteProcessLock, Failed to notify build listener or java.lang.ExceptionInInitializerError.

To stop the daemon, you can either:

1- restart Android Studio,

or

2- enter the following command in the IDE's Terminal window: ./gradlew --stop or for windows gradlew --stop

Gradle restarts the daemon for you the next time you sync or build your project.

关于android - 更新到 A.S. 后出现错误 :Could not initialize class com. android.ide.common.util.ReadWriteProcessLock 2.4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43224412/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com