Fixed
Status Update
Comments
pa...@gmail.com <pa...@gmail.com>
uc...@google.com <uc...@google.com> #2
Can you share a sample project to reproduce this issue.
je...@gmail.com <je...@gmail.com> #3
Having the same issue after updating to Android Studio 3.4 Canary 8
Build #AI-183.4588.61.34.5173923, built on December 11, 2018
JRE: 1.8.0_152-release-1248-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1
gradle distribution: gradle-5.1-rc-1-all
compileSdk: 28
minSdk: 21
targetSdk: 28
When I change compileSdk to a lower version than 28 gradle sync is successful. But building the project issues an "Android resource linking failed" error, reporting missing ressources like ...\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:7
Build #AI-183.4588.61.34.5173923, built on December 11, 2018
JRE: 1.8.0_152-release-1248-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1
gradle distribution: gradle-5.1-rc-1-all
compileSdk: 28
minSdk: 21
targetSdk: 28
When I change compileSdk to a lower version than 28 gradle sync is successful. But building the project issues an "Android resource linking failed" error, reporting missing ressources like ...\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values-v28\values-v28.xml:7
bu...@gmail.com <bu...@gmail.com> #4
I get this error in the following sequence
I have a project with 2 modules
One produces an aar library using plugin com.android.library ; if this is the only module in settings.gradle then sync completes wihout failure
The other produces an apk using plugin com.android.application; which includes the library module wih the following dependency
dependencies {
implementation project(path: ':STARlibrary')
}
if this module is included in setttings.gradle the sync fails
After a failed sync the build can be used and behaves perfectly including stopping at breakpoints in the library module etc
I have a project with 2 modules
One produces an aar library using plugin com.android.library ; if this is the only module in settings.gradle then sync completes wihout failure
The other produces an apk using plugin com.android.application; which includes the library module wih the following dependency
dependencies {
implementation project(path: ':STARlibrary')
}
if this module is included in setttings.gradle the sync fails
After a failed sync the build can be used and behaves perfectly including stopping at breakpoints in the library module etc
bu...@gmail.com <bu...@gmail.com> #5
Error not present in Canary 6
Error still exists in Canary 7 & 8 & 9 & 10
Error still exists in Canary 7 & 8 & 9 & 10
je...@google.com <je...@google.com>
ch...@google.com <ch...@google.com> #6
I am not able to reproduce the problem with build files in #4. Is it possible to share the entire project?
Thanks!
Thanks!
bu...@gmail.com <bu...@gmail.com> #7
Hi
Thank you for the reply
The entire project contained 400 c++ ndk files
I have reduced it to a skeleton which still shows the problem but will not produce a runable project attached
The java is one level above the Project so please install the PARENT and then open the PROJECT below it with Android Studio
It may not produce the problem when first opened by Android Studio
After CloseProject and then OpenProject it always fails for me
I look forward to a solution
Regards James
Thank you for the reply
The entire project contained 400 c++ ndk files
I have reduced it to a skeleton which still shows the problem but will not produce a runable project attached
The java is one level above the Project so please install the PARENT and then open the PROJECT below it with Android Studio
It may not produce the problem when first opened by Android Studio
After CloseProject and then OpenProject it always fails for me
I look forward to a solution
Regards James
ch...@google.com <ch...@google.com> #8
Re #7, Thank you for the sample project. Unfortunately it works fine on my machine.
Did you try File -> Invalidate Caches/Restart -> Invalidate and Restart? Does this help?
Did you try File -> Invalidate Caches/Restart -> Invalidate and Restart? Does this help?
je...@gmail.com <je...@gmail.com> #9
I am gettings this error with several projects, e.g.:
https://github.com/google/iosched
https://github.com/nickbutcher/plaid
https://github.com/ricknout/rugby-ranker
I already tried to invalidate caches and restart, clean and rebuild the project. But the issue remains the same:
Gradle sync failed: 'Gradle: android-android-28' already disposed: --------------Creation trace:
java.lang.Throwable: 1547250498781
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.AndroidModuleDependenciesSet...
Android Studio 3.4 Canary 10
Build #AI-183.4588.61.34.5202479, built on December 28, 2018
JRE: 1.8.0_152-release-1248-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1
I already tried to invalidate caches and restart, clean and rebuild the project. But the issue remains the same:
Gradle sync failed: 'Gradle: android-android-28' already disposed: --------------Creation trace:
java.lang.Throwable: 1547250498781
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.AndroidModuleDependenciesSet...
Android Studio 3.4 Canary 10
Build #AI-183.4588.61.34.5202479, built on December 28, 2018
JRE: 1.8.0_152-release-1248-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1
ja...@gmail.com <ja...@gmail.com> #10
Hi uc...
Further to #4
Invalidate caches has NO effect
Loading my skeleton project PARENT/POJECT
onto a fresh machine and opening with android studio "open an existing project" the load and build will be successful
Now close android studio completely
Start android studio and ,Guesss What, the load will fail !!!
I have confirmed this on both intel and amd machines running windows 10
Regards James
Further to #4
Invalidate caches has NO effect
Loading my skeleton project PARENT/POJECT
onto a fresh machine and opening with android studio "open an existing project" the load and build will be successful
Now close android studio completely
Start android studio and ,Guesss What, the load will fail !!!
I have confirmed this on both intel and amd machines running windows 10
Regards James
ja...@gmail.com <ja...@gmail.com> #11
Problem not present in Canary 6
Problem still exists in Canary 7 & 8 & 9 & 10 & 3.5 canary 1
The idea logs sent in 120625735 and in 120822744
A project which replicates the problem sent in 120625735 #7
I have verified that it will show the problem by installation on 3 different machines
Can we provide any further information to allow you to solve the problem?
Problem still exists in Canary 7 & 8 & 9 & 10 & 3.5 canary 1
The idea logs sent in 120625735 and in 120822744
A project which replicates the problem sent in 120625735 #7
I have verified that it will show the problem by installation on 3 different machines
Can we provide any further information to allow you to solve the problem?
ch...@google.com <ch...@google.com> #12
The problem should be fixed in the next releases, 3.5 canary 4, 3.4 beta 5. Please verify and let us know if you still encounter any issues.
ja...@gmail.com <ja...@gmail.com> #13
Yes it is fixed and tested
pa...@gmail.com <pa...@gmail.com> #14
Thanks all.
the bug has been fixed.
the bug has been fixed.
Description
AI-183.4284.148.34.5159543, JRE 1.8.0_152-release-1248-b01x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1920x1080
Android Gradle Plugin: 3.4.0-alpha07
Gradle: 5.0
NDK: from local.properties: (not specified); latest from SDK: (not found);
LLDB: pinned revision 3.1 not found; latest from SDK: (package not found);
CMake: from local.properties: (not specified); latest from SDK: (not found); from PATH: (not found);
Source: user_sentiment_feedback
IMPORTANT: Please read
11:26 PM Gradle sync failed: 'Gradle: android-android-28' already disposed: --------------Creation trace:
java.lang.Throwable: 1544212596989
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.AndroidModuleDependenciesSet... (show balloon)