Android Studio 0.4.+ 自定义调试密钥库 [英] Android Studio 0.4.+ custom debug keystore
本文介绍了Android Studio 0.4.+ 自定义调试密钥库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在 Android Studio 0.4 之前,我可以通过
Prior to Android Studio 0.4, I was able to set a custom debug keystore via
File -> Project Structure -> Facets -> Compiler Tab
这个选项至少在 Android Studio 0.4.2 中已经存在.我在哪里可以设置自定义密钥库以便能够在不同的 PC 上共享它,例如通过 VCS?
This option has gone at least with Android Studio 0.4.2. Where can I set the custom keystore for being able to share it over different PCs, e.g. via a VCS?
推荐答案
这可以通过在 build.gradle
配置中添加 signingConfigs
来解决.
This can be solved by adding signingConfigs
to the build.gradle
configuration.
android {
// ...
signingConfigs {
debug {
storeFile file('../debug.keystore')
}
/*
release {
storeFile file('release.keystore')
storePassword "mystorepassword"
keyAlias "mykeyalias"
keyPassword "mykeypassword"
}
*/
}
这篇关于Android Studio 0.4.+ 自定义调试密钥库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文