更新到Android Studio 3.2 Beta 1后,我开始为两个不同的项目收到以下错误:
Gradle sync failed: Already disposed!
Android Studio 3.1.3没有错误,在更新到beta 1之前,Android Studio 3.2的各种金丝雀版本没有错误.
我已经尝试了我能想到的一切(例如完整清理项目,包括所有生成的.gradle / .iml / .idea文件/文件夹,以及完整的无效缓存和Android Studio重启)但没有成功.使用Gradle从命令行按预期工作.
编辑
事件日志正在显示
Unable to save plugin settings: The plugin org.jetbrains.android failed to save settings and has been disabled. Please restart Android Studio
在“IDE Fatal Errors”窗口中,我看到以下异常:
'Gradle: backport-util-concurrent:backport-util-concurrent:3.1@jar' already disposed: --------------Creation trace:
java.lang.Throwable
at com.intellij.openapi.util.TraceableDisposable.(TraceableDisposable.java:45)
at com.intellij.openapi.roots.impl.libraries.LibraryImpl.(LibraryImpl.java:103)
at com.intellij.openapi.roots.impl.libraries.LibraryImpl.(LibraryImpl.java:69)
at com.intellij.openapi.roots.impl.libraries.LibraryTableBase$LibraryModel.readExternal(LibraryTableBase.java:327)
at com.intellij.openapi.roots.impl.libraries.LibraryTableBase.loadState(LibraryTableBase.java:64)
at com.intellij.openapi.roots.impl.libraries.LibraryTableBase.loadState(LibraryTableBase.java:30)
at com.intellij.configurationStore.ComponentStoreImpl.doInitComponent(ComponentStoreImpl.kt:375)
at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:331)
at com.intellij.configurationStore.ComponentStoreImpl.initPersistenceStateComponent(ComponentStoreImpl.kt:121)
at com.intellij.configurationStore.ComponentStoreImpl.initComponent(ComponentStoreImpl.kt:96)
at com.intellij.openapi.components.impl.PlatformComponentManagerImpl.initializeComponent(PlatformComponentManagerImpl.java:54)
EDIT2:
更新版本的Android Studio 3.2也存在同样的问题.