在Android Studio中的不同开发人员计算机之间共享android调试证书 [英] Sharing android debug certificate across different developer machines in Android Studio

查看:160
本文介绍了在Android Studio中的不同开发人员计算机之间共享android调试证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当同一部手机连接到不同的MacBooks时重新安装Android调试版本时,所有开发机器(MacBooks)是否可以共享相同的调试证书?这将有助于避免在开发设备上重新安装.

As Android debug builds get reinstalled when the same phone is connected to different MacBooks, is there any way for all development machines (MacBooks) to share the same debug certificate? It will help to avoid reinstallation on development devices.

推荐答案

最简单的方法是将调试密钥库检入到项目中,然后像这样在build.gradle中引用它:

Easiest thing to do this would be to check the debug keystore into your project and then reference it in build.gradle like so:

signingConfigs {
    debug {
        storeFile file('../keystore/debug.keystore')
        storePassword "android"
        keyAlias "androiddebugkey"
        keyPassword "android"
    }
    release {
        // ...
    }
}

这篇关于在Android Studio中的不同开发人员计算机之间共享android调试证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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