修改APP文件夹里面的build.gradle
buildTypes { debug { signingConfig signingConfigs.release buildConfigField "boolean", "ISDEBUG", "true" debuggable true minifyEnabled true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } release { signingConfig signingConfigs.release minifyEnabled true zipAlignEnabled true debuggable true shrinkResources true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }