打开app下build.gradle文件
android {
/*
MD5: A4:C8:D6:64:E1:61:A0:49:29:9B:6E:FF:06:A9:18:BC
SHA1: EA:D6:D6:CC:63:91:52:32:8F:03:98:3E:16:39:4D:2F:31:56:87:A9
SHA256: 57:76:5E:F4:93:53:52:E5:51:8E:26:7C:FF:61:4F:64:EB:8F:D3:58:DF:BE:B1:BF:29:3C:C0:CA:F1:76:46:65
签名算法名称: SHA256withRSA
版本: 3
*/
// 第一步
signingConfigs {
release {
// 别名
keyAlias 'AlmightyBox'
// key密码
keyPassword 'chenjun1124'
// store密码
storePassword 'chenjun1124'
// 签名文件路径
storeFile file('D:/AndroidStudioProjects/AlmightyBox/key.jks')
}
}
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.chenjun.almightybox"
minSdkVersion 19
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
// 第二步
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
debuggable true
signingConfig signingConfigs.release
}
debug {
signingConfig signingConfigs.release
}
}
}