简体   繁体   English

Android Keystore调试重复项

[英]Android Keystore Debug duplicates

Software: Eclipse, keytool from java SDK 软体: Eclipse,Java SDK的keytool

Language: Java 语言: Java

Platform: Android 平台: Android

Searched already: Google and StackOverFLow, all related finds are about finding or restoring debug keystores, this probleem seems non existing, probably due to a rookie mistake on my part :( 已经搜索: Google和StackOverFLow,所有相关发现均与查找或恢复调试密钥库有关,此问题似乎不存在,可能是由于我的菜鸟错误:(

The problem 问题

I have the following problem, I have created a game and attached for testing the debug APK SHA1 to Google Play Services so I could test achievements etc. I released the game and that debug SHA1 is still connected, at the time I thought it to be wise so I could keep on testing for future version releases. 我遇到以下问题,我创建了一个游戏,并将其连接到Google Play Services,用于测试调试APK SHA1,以便可以测试成就等。我发布了游戏,当时我认为调试SHA1仍处于连接状态明智的做法,这样我就可以继续测试将来的版本。

Now comes the issue. 现在来了问题。 I am trying to add Google Play Services to an older game I made in the past. 我正在尝试将Google Play服务添加到过去制作的较旧的游戏中。 Now I can't add the SHA1 code from that debug keystore because it already used by my other application, since I can't seem to delete that debug entry from GooglePlay Services I am stuck with using a different SHA1 code, which means a different debug key(store). 现在,我无法从该调试密钥库中添加SHA1代码,因为它已被我的其他应用程序使用,因为我似乎无法从GooglePlay服务中删除该调试项,因此我坚持使用不同的SHA1代码,这意味着调试密钥(存储)。 However I can't seem to create a different debug store due to the rules that are needed for android SDK, I cannot change the alias, passwords for the debug key... all results in a bad keystore. 但是由于android SDK所需的规则,我似乎无法创建其他调试存储库,我无法更改别名,调试密钥的密码...所有这些都会导致密钥库损坏。

How can I change the SHA1 for the debug key which will work with eclipse and android so that I can add the new debug SHA1 to Google Play Services so I can start testing? 如何更改调试键的SHA1(可与eclipse和android一起使用),以便将新的调试SHA1添加到Google Play服务中,从而可以开始测试?

Have you tried to rename the file debug.keystore in the .android directory in your user home dir? 您是否尝试过将用户主目录下.android目录中的debug.keystore文件重命名? Afterwards you should be able create a fresh debug keystore. 之后,您应该可以创建一个新的调试密钥库。

Afterwards you can try to join the two key-stores using Portecle or the keytool command-line tool. 之后,您可以尝试使用Portecle或keytool命令行工具将两个密钥库合并

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM