gpt4 book ai didi

android - Android debug.keystore SHA1 是否对所有人都相同?

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:19:43 25 4
gpt4 key购买 nike

debug.keystore 是在我们安装android sdk 时自动生成的。那么我们的 debug.keystore 是否在所有机器上都具有相同的 SHA1?

最佳答案

您不会为每台机器拥有相同的调试 key 。而且你不会有相同的机器调试 key ,因为有 an expiry for the debug key :

The self-signed certificate used to sign your APK for debugging has an expiration date of 365 days from its creation date. When the certificate expires, you will get a build error.

To fix this problem, simply delete the debug.keystore file. The file is stored in the following locations:

  • ~/.android/ on OS X and Linux
  • C:\Documents and Settings\.android\ on Windows XP
  • C:\Users\.android\ on Windows Vista and Windows 7, 8, and 10

The next time you build and run the debug build type, the build tools will regenerate a new keystore and debug key. Note that you must run your app, building alone does not regenerate the keystore and debug key.

您可能会在到期日期之前获得相同的调试 key ,但不要依赖它。

关于android - Android debug.keystore SHA1 是否对所有人都相同?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41995165/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com