1.build.gradle:buildTypes {
release {
minifyEnabledtrue
shrinkResourcestrue
PRoguardFiles getDefaultProguardFile('proguard-android-optimize.txt'),'proguard-rules.pro'
signingConfig signingConfigs.SginConfig
}
}
2.proguard-rules.pro-assumenosideeffectsclassandroid.util.Log{
publicstatic boolean isLoggable(java.lang.String,int);
publicstatic int v(...);
publicstatic int i(...);
publicstatic int w(...);
publicstatic int d(...);
publicstatic int e(...);
}
新闻热点
疑难解答