Linux 在哪里可以找到 eclipse 创建的 android 密钥库的默认位置?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9641443/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Where can I find the default location for android keystores created by eclipse?
提问by Steffen
I can't remember which file location I chose when exporting my signed android application via Android Tools in Eclipse on Fedora 15 and JDK 6.
我不记得在 Fedora 15 和 JDK 6 上通过 Eclipse 中的 Android 工具导出我签名的 android 应用程序时选择了哪个文件位置。
I only do find a "debug.keystore" file at ~/.android/, but my android app is already in the Android Market. Is it possible I uploaded an apk with a debug keystore ?
我只在 ~/.android/ 找到了一个“debug.keystore”文件,但我的 android 应用程序已经在 Android Market 中了。我可以上传带有调试密钥库的 apk 吗?
Is that maybe because I used:
那可能是因为我使用了:
"right click on my eclipse project" -> "Android Tools" -> "Export Signed Android Application".
“右键单击我的 Eclipse 项目”->“Android 工具”->“导出已签名的 Android 应用程序”。
Instead of:
代替:
"File" -> "Export" ?
“文件”->“导出”?
采纳答案by Steffen
My private keystore actually was the "debug.keystore" which can be found at: ~/.android/.
我的私钥库实际上是“ debug.keystore”,可以在以下位置找到:~/.android/。
I just gave it the misleading name "debug".
我只是给它起了一个误导性的名字“调试”。
回答by mah
If there was a helpful default location you could just go through the export process and be looking at the right place already. I'll assume you tried that and your keystore wasn't there, in which case you'll need to find it yourself. If you remember even a portion of the file name (like perhaps it ends in .keystore), you can try the locate
command, such as locate keystore
.
如果有一个有用的默认位置,您可以完成导出过程并已经在寻找正确的位置。我假设您已经尝试过并且您的密钥库不在那里,在这种情况下您需要自己找到它。如果您还记得文件名的一部分(例如它可能以 .keystore 结尾),您可以尝试使用该locate
命令,例如locate keystore
.
回答by kinnla
The default location is the same where your android SDK is stored, in my case (having installed the android SDK via macports) it is /opt/local/share/java
.
默认位置与存储您的 android SDK 的位置相同,在我的情况下(通过 macports 安装了 android SDK)它是/opt/local/share/java
.