Gradle sync failed: 'Gradle:xxxxx@jar' already disposed: --------------Creation trace: java.lang.Throwable: 1564477298072 at com.intellij.openapi.util.TraceableDisposable.<init>(TraceableDisposable.java:44) at com.intellij.openapi.roots.impl.libraries.LibraryImpl.<init>(LibraryImpl.java:102) at com.intellij.openapi.roots.impl.libraries.LibraryImpl.<init>(LibraryImpl.java:74) at com.intellij.openapi.roots.impl.libraries.LibraryTableBase$LibraryModel.createLibrary(LibraryTableBase.java:298) at com.intellij.openapi.roots.impl.libraries.LibraryTableBase$LibraryModel.createLibrary(LibraryTableBase.java:291) at com.intellij.openapi.roots.impl.libraries.LibraryTableBase$LibraryModel.createLibrary(LibraryTableBase.java:285) at com.intellij.openapi.externalSystem.service.project.AbstractIdeModifiableModelsProvider.createLibrary(AbstractIdeModifiableModelsProvider.java:257) at com.android.tools.idea.gradle.project.sync.setup.module.android.AndroidModuleDependenciesS... (show balloon)
As described above, one of the problems Gradle encountered with this error was that the iml file in Model collided with the merge code, causing the project to be able to
It works well, but the red error is reported everywhere in the code, which makes it very uncomfortable. At this time, it is necessary to find the configuration files in the code according to the relevant information of the error. The general code can run to explain why the code is not a problem, which is mostly in the configuration file.
If you can see the following warning, 90% of your iml files already have conflicts. There are some ==>> symbols when merging code.
Just find the. iml file in the corresponding Model and delete the exceptional characters. If you don't have this file, restore it to the original and find the iml file.
Load Settings Cannot load settings from file 'D:\AndroidProject\xxProject\xxModel\xxModel.iml': ParseError at [row,col]:[100,2] Message: Element content must consist of properly formatted character data or tags. Please correct the file content
Note: When submitting code. iml had better not submit it. Please add it to the ignore file.