Fixed
Status Update
Comments
ga...@google.com <ga...@google.com> #2
Scot, can we please update MergeClassesTransform in 3.5 to use CLASS_MATCHER instead of CLASS_PATTERN?
sp...@google.com <sp...@google.com>
sp...@google.com <sp...@google.com>
em...@gmail.com <em...@gmail.com> #3
Thanks for quick fix but, how it is fixed ? Should we update something ? R8 or AGP ?
sp...@google.com <sp...@google.com> #4
This is already fixed in the 3.6 branch, so you can update AGP to 3.6 canary 4.
I added a fix to the 3.5 branch, so it should be fixed in the 3.5 stable release as well.
I added a fix to the 3.5 branch, so it should be fixed in the 3.5 stable release as well.
em...@gmail.com <em...@gmail.com> #5
Ok thanks, but currently i cannot use 3.6 Canary 4 following to this another issue i have filed : https://issuetracker.google.com/issues/136150634
Will wait on another release, for the moment i have downgraded to Beta 5
Will wait on another release, for the moment i have downgraded to Beta 5
sp...@google.com <sp...@google.com> #6
The fix should be in 3.5 RC 1
em...@gmail.com <em...@gmail.com> #7
It seems to works OK in 3.5 RC1 , thanks again !
di...@gmail.com <di...@gmail.com> #8
> Task :app:compileDebugJavaWithJavac FAILED
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Failed to transform unityLibrary-debug.aar (project :unityLibrary-debug) to match attributes {artifactType=android-classes-jar, org.gradle.usage=java-api}.
> Execution failed for AarToClassTransform: C:\Users\muhammad.fawad\AndroidStudioProjects\DiceOn2\unityLibrary-debug\build\.transforms\4734175e84b58948d1a1e29cf9bd04bb\transformed\jetified-unityLibrary-debug.aar.
> duplicate entry: META-INF/versions/9/module-info.class
This issue is coming in android studio after the integration of Unity Module in android studio ? can anyone please help me out to come out of this error
Execution failed for task ':app:compileDebugJavaWithJavac'.
> Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Failed to transform unityLibrary-debug.aar (project :unityLibrary-debug) to match attributes {artifactType=android-classes-jar, org.gradle.usage=java-api}.
> Execution failed for AarToClassTransform: C:\Users\muhammad.fawad\AndroidStudioProjects\DiceOn2\unityLibrary-debug\build\.transforms\4734175e84b58948d1a1e29cf9bd04bb\transformed\jetified-unityLibrary-debug.aar.
> duplicate entry: META-INF/versions/9/module-info.class
This issue is coming in android studio after the integration of Unity Module in android studio ? can anyone please help me out to come out of this error
sp...@google.com <sp...@google.com> #9
Re #8, which version of the Android Gradle plugin are you using?
Description
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app_advanced_tools_feature:transformClassesWithMergeClassesForRelease'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> duplicate entry: module-info.class
* What went wrong:
Execution failed for task ':app_advanced_tools_feature:transformClassesWithMergeClassesForRelease'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> duplicate entry: META-INF/versions/9/module-info.class
I have tried to use in build.gradle those options but it is still not working :
exclude 'META-INF/versions/9/module-info.class'
exclude '**/module-info.class'
exclude 'module-info.class'
configurations {
compile.exclude group: 'org.slf4j' //Because the issue is caused but this lib, only with version 1.8.0-beta4, it is working fine with v. 1.7.26
}