其他分享
首页 > 其他分享> > 【Solve】InnerClass annotations are missing corresponding EnclosingMember annotations. Such InnerClass

【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
}

 

 

标签:ignored,InnerClass,EnclosingMember,corresponding,Such,annotations
来源: https://www.cnblogs.com/Can-daydayup/p/14716393.html