更新到Android Studio 3.2 Beta 1后,我在两个不同的项目中都开始收到以下错误:
Gradle sync failed: Already disposed!
在更新到beta 1之前,Android Studio 3.2的各种预览版本都没有错误。 Android Studio 3.1.3没有错误。
我已经尝试了我能想到的一切(例如完全清理项目,包括所有生成的.gradle/.iml/.idea文件/文件夹,以及完全使Android Studio缓存无效并重新启动),但都没有成功。使用Gradle从命令行构建可以按预期工作。
这不是 Android Studio Gradle Already disposed Module 的重复。
编辑
事件日志显示
Unable to save plugin settings: The plugin org.jetbrains.android failed to save settings and has been disabled. Please restart Android Studio
在"IDE致命错误"窗口中,我看到以下异常:
'Gradle: backport-util-concurrent:backport-util-concurrent:3.1@jar' already disposed: --------------Creation trace:
java.lang.Throwable
at com.intellij.openapi.util.TraceableDisposable.<init>(TraceableDisposable.java:45)
at com.intellij.openapi.roots.impl.libraries.LibraryImpl.<init>(LibraryImpl.java:103)
at com.intellij.openapi.roots.impl.libraries.LibraryImpl.<init>(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)
编辑2:
最近版本的Android Studio 3.2也出现了同样的问题。