Android studio warning - InnerClass annotations are missing corresponding EnclosingMember annotations

被刻印的时光 ゝ 提交于 2019-11-30 00:01:41

It may because some annotations be confused, so just add proguard rule:

-keepattributes *Annotation*
-keep @**annotation** class * {*;}

it worked fine to me.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!