首页 > 其他 > 详细

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

时间:2021-04-29 09:44:24      阅读:36      评论:0      收藏:0      [点我收藏+]

问题:

  今天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 annotations are ignored

原文:https://www.cnblogs.com/Can-daydayup/p/14716393.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!