在proguard-rules.pro里面添加一下混淆:
-keepattributes EnclosingMethod
这里我是进行了分包处理,并不清楚两者会不会有影响。
defaultConfig {
applicationId "com.dhcc.csr"
minSdkVersion 14
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}