问题:
今天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 }