如何仅在调试模式下使用特定的minSdkVersion?我想将minSdkVersion 21用于调试模式,但minSdkVersion 15用于发布.我不想为此使用口味,因为会给你带来麻烦.
我认为可能是这样(但不起作用):
defaultConfig {
applicationId "blacktoad.com.flapprototipo"
minSdkVersion 15
debug{
minSdkVersion 21
}
targetSdkVersion 23
versionCode 42
versionName "1.72"
multiDexEnabled true
}
Run Code Online (Sandbox Code Playgroud)