Android Studio 0.4。+自定义调试密钥库 [英] Android Studio 0.4.+ custom debug keystore

查看:345
本文介绍了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?

推荐答案

这可以通过添加可以解决 signingConfigs build.gradle 配置。

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆