更新到后Android Studio 3.2 测试版 1,我开始收到两个不同项目的以下错误:
Gradle sync failed: Already disposed!
Android Studio 3.1.3没有错误,更新到beta 1之前的Android Studio 3.2各个金丝雀版本也没有错误。
我已经尝试了我能想到的一切(例如,完全清理项目,包括所有生成的 .gradle/.iml/.idea 文件/文件夹,以及完全无效缓存并重新启动 Android Studio),但没有成功。使用 Gradle 从命令行按预期进行构建。
This is not的副本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 也有同样的问题。
事实证明,问题是我试图打开一个项目目录,该目录是symlink到实际位置(在同一分区上)。 Gradle(在命令行上)从符号链接位置构建项目没有任何问题,但是,在 Android Studio 中打开它会导致上述模糊且无用的错误。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)