Android Eclipse 在哪里隐藏密钥库?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3588487/
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 does Eclipse hide the keystore?
提问by Aurora
I'm surprisingly frustrated by this, and I suspect the answer is simple.
我对此感到非常沮丧,我怀疑答案很简单。
I have compiled and signed my android app using the Export Wizard, as described herein the section 'Compile and sign with Eclipse ADT'.
我编写和使用导出向导签我的Android应用程序,如所描述这里的部分“编译和标志使用Eclipse ADT”。
I would like to backup the keystore and have it handy for future app updates, but I can't figure out for the life of me where the keystore is saved. I of course can use Eclipse to go through the process, but if something happens to my computer I'll be pretty screwed.
我想备份密钥库并方便将来的应用程序更新,但我一生都无法弄清楚密钥库的保存位置。我当然可以使用 Eclipse 来完成这个过程,但是如果我的电脑出了什么问题,我会很糟糕。
Does anyone know where it is stored?
有谁知道它存储在哪里?
采纳答案by Ryan Berger
It doesn't hide it. One of the first steps of the export (where you create or use existing keystore) asks you where you want to save it. You might want to go through the export steps again to see which path it is currently defaulted to and then check there.
它不会隐藏它。导出的第一步(在何处创建或使用现有密钥库)会询问您要将其保存在何处。您可能希望再次执行导出步骤以查看当前默认的路径,然后在那里进行检查。
It is typically saved with the name key
(no extension).
它通常与名称key
(无扩展名)一起保存。
回答by Giulio Prisco
I just spent a lot of time on this very annoying problem. On Windows, if you do not specify a full path when you create the keystore, Eclipse will hide it in its own directory. So in my case it was C:\eclipse\mykeystore
我只是在这个非常烦人的问题上花了很多时间。在 Windows 上,如果您在创建密钥库时没有指定完整路径,Eclipse 会将其隐藏在自己的目录中。所以就我而言,它是 C:\eclipse\mykeystore
回答by Rachid Mchachti
it is very easy to creat the KeyStore, just follow the steps in your java environment, for exemplemine is java EDT
创建 KeyStore 非常容易,只需按照您的 java 环境中的步骤操作即可,例如 java EDT
in your workspace (at the left), you have your project under(Package Explorer, Navigator), click on Navigator right clik on the top of your name project and you will have a list of items, at the last ones choose click on Android Tools ==> it will show another list, this one will display exporte unsigned package, export signed package ... and so on. choose signed package and follow the steps where the system will put your key store(it's you ho decide will it should be) choose any location you went, and give a pwd for that
在您的工作区(左侧)中,您的项目位于(Package Explorer,Navigator)下,单击 Navigator right 点击名称项目顶部的项目,您将看到一个项目列表,最后选择点击 Android工具 ==> 它将显示另一个列表,这个列表将显示导出未签名包、导出签名包...等等。选择签名包并按照系统将放置您的密钥存储的步骤(由您决定应该是)选择您去过的任何位置,并为此提供密码
good luck RachidM
祝你好运
回答by user1394295
So, here is how it is, When you first export the project you will see the name of the keystore is the same as .apk Change this! make it projectname.keystore for example It was bit misleading but when you save the apk then it will replace the keystore and you cant really find it again. Then everytime you export the project select the .keystore file
所以,它是这样的,当你第一次导出项目时,你会看到密钥库的名称与 .apk 相同,改变这个!让它成为 projectname.keystore 例如这有点误导,但当你保存 apk 时,它将替换密钥库,你真的无法再次找到它。然后每次导出项目时选择 .keystore 文件
回答by Conrad
I too was not paying attention when creating the keystore. I am using the Motodev-wrapped Eclipse installation. The default location for the keystore there is $HOME\motodevstudio\tools.
创建密钥库时我也没有注意。我正在使用 Motodev 包装的 Eclipse 安装。密钥库的默认位置是 $HOME\motodevstudio\tools。
回答by Pnemonic
The Android plugin hides its keystores in either %HOMEPATH%\.android
or ~/.android
Android 插件将其密钥库隐藏在%HOMEPATH%\.android
或~/.android