是否可以创建自定义构建类型并使用调试的密钥库对其进行签名?
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
debuggable true
// debug specific configs here
}
staging {
// staging specific configs here
}
}
我尝试为我的舞台设置 debubbable true
但没有奏效 . 我无法使用 initWith
配置,因为 debug
配置可能会干扰我的 staging
配置 . 我知道我可以创建 signingConfig
但这涉及创建一个单独的密钥 . 我正在寻找使用debug的默认密钥库 .
请帮忙 .
1 回答
你可以试试这个: