После обновления до Android Studio 3.2 Beta 1 я начал получать следующую ошибку для двух разных проектов:
Gradle sync failed: Already disposed!
В Android Studio 3.1.3 не было ошибок, и в различных версиях Android Studio 3.2 до обновления до бета-версии не было ошибок.
Я уже попробовал все, что мог придумать (например, полную очистку проекта, включая все сгенерированные файлы / папки .gradle / .iml / .idea, а также полный кеш аннулирования и перезапуск Android Studio), но безуспешно. Сборка работает, как и ожидалось, из командной строки с использованием Gradle.
Это , а не дубликат Модуль Android Studio Gradle Уже удален
EDIT
Журнал событий показывает
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.<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)
EDIT2:
Более поздняя версия Android Studio 3.2 имеет ту же проблему.