If your project uses a note plug-in such as Butterknife upgrade 3.1 after the packaging compile the following error prompt
Innerclass annotations is missing corresponding enclosingmember annotations. Such innerclass annotations is ignored.
This should be due to internal class annotations such as annotations that are used in internal classes are ignored when packaging and compiling
Although it can be compiled and installed to the phone can run normally but for some obsessive-compulsive disorder, I always feel very uncomfortable, so find Niang find solutions because of the 3.1 update soon many domestic small partners have no choice to update so the corresponding post in the country is also relatively small below is a foreign site on the other people gave Interim solution
Add the following code to the Build.gradle
Buildtypes {
Release {
lintoptions {
Checkreleasebuilds false
Abortonerror false
}
}
}
This issue is a bug in the as 3.1 because the public class is not allowed to implements Java.lang.annotation.Annotation this is the official reason now they have fixed the issue in the 3.2 version, there are Interested small partners can go to download the latest version of Android Studio 3.2
Panda struggling to drop
Links: Https://www.jianshu.com/p/14ea74ef7fe8
Source: Pinterest
The copyright of the book is owned by the author, and any form of reprint should be contacted by the author for authorization and attribution.
Android Studio innerclass annotations is missing corresponding enclosingmember annotations. Such Innerclass Annota