【Solve】InnerClass annotations are missing corresponding EnclosingMember annotations. Such InnerClass

问题:

  今天Android项目在build时出现了下面的警告:

InnerClass annotations are missing corresponding EnclosingMember annotations. Such InnerClass annotations are ignored

内部类批注缺少相应的封闭成员批注。这样的内部类注释将被忽略

解决方法:

在build.gradle中找到 buildTypes 节点,添加一下几行代码即可:

//Solve:InnerClass annotations are missing corresponding EnclosingMember annotations. Such InnerClass annotations are ignored.
lintOptions{
    checkReleaseBuilds false
    abortOnError false
}

【Solve】InnerClass annotations are missing corresponding EnclosingMember annotations. Such InnerClass

 

 

上一篇:python机器学习《入门》


下一篇:Fiddler-009-AutoResponder 简单的 MOCK SERVER 应用实例