android studio 错误: InnerClass annotations are missing corresponding EnclosingMember annotations. Such InnerClass annotations are ignored

android studio 错误: InnerClass annotations are missing corresponding EnclosingMember annotations. Such InnerClass annotations are ignored

 

droid Studio (3.1.2)导包后出错(如标题)

解决方案:在app 下的build.gradle 的文件中添加如下:

 

 

buildTypes {

 

 

release {

 

 

minifyEnabled false

 

 

proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

 

//添加的内容

 

lintOptions {

checkReleaseBuilds false

abortOnError false

}

 

}

}

发现:1、有时候有上面代码也报错。

解决: 把上面的代码删除掉(Android Studio 3.1.2)

posted @ 2018-08-30 15:13  野狼谷  阅读(3515)  评论(0编辑  收藏  举报