1.添加siggnig

Android stadio 自定义debug release keystore-LMLPHP

Android stadio 自定义debug release keystore-LMLPHP

name 随意,不过按我写的就可以了。设置完成之后,你的build.grade就会多出来一些:

android {
signingConfigs {
signingConfigs {
keyAlias 'androiddebugkey'
keyPassword 'android'
storeFile file('D:/lightpole.keystore')
storePassword 'android'
}
}

2.配置你的sigging生效

buildTypes {
release {
signingConfig signingConfigs.signingConfigs
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
signingConfig signingConfigs.signingConfigs
}
}
05-19 16:13