创建签字
Build→Generate Signed Build / APK
Gradle文件配置
signingConfigs {
config {
storeFile file(签字地址)
storePassword '123'
keyAlias = 'key0'
keyPassword '123'
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config
}
debug {
signingConfig signingConfigs.config
}
}
IDE右侧Gradle→项目名→Tasks→build→双击assemble,生成release签字包