Fixed
Status Update
Comments
uc...@google.com <uc...@google.com> #2
can you share a sample project to reproduce this issue.
[Deleted User] <[Deleted User]> #3
I'm still trying to find a minimal reproducible example, but I noticed that the warning is actually produced in the transformClassesWithDexBuilderForDebug task.
[Deleted User] <[Deleted User]> #4
i also get this error but only when doing a production signed release on the new android studio 3.1, i cant give you my project entirely but is there something else you can view ? like proguard build or something ?
uc...@google.com <uc...@google.com> #5
can you share a sample project to reproduce this issue
[Deleted User] <[Deleted User]> #6
I am getting same error. Did you find any solutions???
[Deleted User] <[Deleted User]> #7
just look at this
uc...@google.com <uc...@google.com>
ha...@gmail.com <ha...@gmail.com> #8
me too i have a problem
je...@google.com <je...@google.com>
vw...@gmail.com <vw...@gmail.com> #9
I am also struggling with this issue. Please advise on a workaround or a fix.
da...@gmail.com <da...@gmail.com> #10
Same problem here after update Android studio to 3.1
ga...@google.com <ga...@google.com> #11
To clarify, this is a warning, not an error, from R8, which we use to compute the list of classes for the main dex, in legacy multidex variant. It does not affect the output, and it should not cause build nor runtime failures.
I am working on a fix to change this keep rule to "-keep public class * implements java.lang.annotation.Annotation", which is semantically the same, and removes the warning.
I am working on a fix to change this keep rule to "-keep public class * implements java.lang.annotation.Annotation", which is semantically the same, and removes the warning.
ga...@google.com <ga...@google.com> #12
The fix to remove the warning message will be released in 3.2.0-alpha12.
Fixed in ag/Ib1807e9aee480583e879da19976f5d3ef6f36a41
Fixed in ag/Ib1807e9aee480583e879da19976f5d3ef6f36a41
qq...@gmail.com <qq...@gmail.com> #13
jo...@gmail.com <jo...@gmail.com> #14
Isn't it simply the rule which is defined in the "mainDexClasses.rules" file under the "<android-sdk-dir>/build-tools/<android-version>/" directory which should be changed to "-keep public class * implements java.lang.annotation.Annotation { *; }"?
st...@gmail.com <st...@gmail.com> #15
ty a lot :) (Y)
[Deleted User] <[Deleted User]> #16
I am facing similar issue. Is there any proper fix? Please update
Thanks
Thanks
ga...@google.com <ga...@google.com> #17
Please see comment #11 . As mentioned there, this is not an error, but a warning message which does not affect the output in any way. The keep rule is fixed in 3.2.0-alpha12.
[Deleted User] <[Deleted User]> #18
Thanks
ba...@gmail.com <ba...@gmail.com> #19
The rule `-keep public class *extends java.lang.annotation.Annotation {
what i should do ??? plz help me
what i should do ??? plz help me
pa...@gmail.com <pa...@gmail.com> #20
ba... / #19 nothing you can do, it's generated code by Android Gradle Plugin or one of its dependencies.
It's a warning only, not an error, so you should have no problems building stuff.
It's fixed in 3.2.0-alpha12, so if you use 3.2 betas (3.2.0-beta05 is latest at this time) or RCs you should not see this any more.
It's a warning only, not an error, so you should have no problems building stuff.
It's fixed in 3.2.0-alpha12, so if you use 3.2 betas (3.2.0-beta05 is latest at this time) or RCs you should not see this any more.
az...@gmail.com <az...@gmail.com> #21
Just a side note: Simply installing AS 3.2 is not enough. You may need to update the gradle plugin to 4.6 & android build gradle to 3.2.0 - which I'm not able to yet because of project constraints.
ms...@gmail.com <ms...@gmail.com> #22
InnerClass annotations are missing corresponding EnclosingMember annotations. Such InnerClass annotations are ignored.
Message{kind=WARNING, text=InnerClass annotations are missing corresponding EnclosingMember annotations. Such InnerClass annotations are ignored., sources=[Unknown source file], tool name=Optional.of(D8)}
plugin to 4.9
android build gradle to 3.2.1
minSdkVersion 15
targetSdkVersion 28
I am getting same error, please help me to resolve
Thank you
Message{kind=WARNING, text=InnerClass annotations are missing corresponding EnclosingMember annotations. Such InnerClass annotations are ignored., sources=[Unknown source file], tool name=Optional.of(D8)}
plugin to 4.9
android build gradle to 3.2.1
minSdkVersion 15
targetSdkVersion 28
I am getting same error, please help me to resolve
Thank you
Description
Gradle version: 4.4
Android Plugin Version: 3.1.0-alpha08
Module Compile Sdk Version: 27
Module Build Tools Version: automatic, resolves to 27.0.1
Android SDK Tools version: 26.1.1
When building my production build, the following warning is produced
Warning: The rule `-keep public class *extends java.lang.annotation.Annotation {
<all>;
}` uses extends but actually matches implements.
I don't have such a rule in my Proguard config.
A quick Google search lead me to