点击Build Variants中的Active Build Variant中的变量状态,切换到release时,会异常,app处有个红叉,需给App添加签名
signingConfigs {
release {
keyAlias 'key0'
keyPassword 'test'
storeFile file('../test.jks')
storePassword 'test'
}
}
buildTypes {
release {
minifyEnabled false
signingConfig signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}