1.需要
需要你有xx.keystore/xx.jks
2.环境
我的是android studio 3.2
3.具体方法
在build.gradle(Module:app)下
apply plugin: 'com.android.application'
android {
//增加这里,写你的keystore的位置和key、password
signingConfigs {
config {
keyAlias 'xxa'
keyPassword 'aaa123'
storeFile file('d:/Android/keystore/xxx.keystore')
storePassword 'aaa123'
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard- rules.pro'
}
//增加这里
debug {
signingConfig signingConfigs.config
}
}
}