android studio解决warning: Ignoring InnerClasses attribute for an anonymous inner class

在proguard-rules.pro中添加以下代码:

-keepattributes EnclosingMethod

-

build.gradle的编译配置如下:

apply plugin:'com.android.application'

android {

compileSdkVersion23

buildToolsVersion"23.0.3"

defaultConfig {

applicationId"com.app.aib"

minSdkVersion15

targetSdkVersion23

versionCode1

versionName"1.0"

}

buildTypes {

release {

minifyEnabledfalse

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

}

}

}

dependencies {

compile fileTree(include: ['*.jar'], dir:'libs')

testCompile'junit:junit:4.12'

compile'com.android.support:appcompat-v7:23.4.0'

}

你可能感兴趣的:(android studio解决warning: Ignoring InnerClasses attribute for an anonymous inner class)