在 Android Studio 中跨不同开发者机器共享 android 调试证书 [英] Sharing android debug certificate across different developer machines in Android Studio

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

问题描述

当同一部手机连接到不同的 MacBook 时,Android 调试版本会被重新安装,有没有办法让所有开发机器 (MacBook) 共享相同的调试证书?这将有助于避免在开发设备上重新安装.

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天全站免登陆