Android Studio Warning - Innerclass Annotations Are Missing Corresponding Enclosingmember Annotations
I recently upgraded to Android Studio 3.1 and upon building my Kotlin with Java project I got the following warning. InnerClass annotations are missing corresponding EnclosingMemb
Solution 1:
It may because some annotations be confused, so just add proguard rule:
-keepattributes *Annotation* -keep @**annotation** class * {*;}
it worked fine to me.
Solution 2:
To fix the issue temporarily, I am adding this:
buildTypes {
release {
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
}
Will update if I find a permanent fix. This page for configuring JUnit 5 may also help
Post a Comment for "Android Studio Warning - Innerclass Annotations Are Missing Corresponding Enclosingmember Annotations"