简体   繁体   English

“.android”文件夹和“debug.keystore”文件丢失

[英]“.android” folder and “debug.keystore” file missing

am using Linux opensuse, eclipse helios package 我正在使用Linux opensuse,eclipse helios包

i have to import google maps in my application for which i need an API key, so in order to get the api key i need to get the MD5 sum value which has to be got by running the debug.keystore file using keytool 我必须在我需要API密钥的应用程序中导入谷歌地图,所以为了获得api密钥,我需要获得必须通过使用keytool运行debug.keystore文件获得的MD5总和值

but the problem is my whole ".android" folder is missing including debug.keystore file.but all the projects a re running smoothly,am able to find it in windows xp, but not in linux(opensuse) 但问题是我的整个“.android”文件夹丢失包括debug.keystore文件。但是所有的项目都运行得很顺利,能够在windows xp中找到它,但不能在linux中找到它(opensuse)

if so what i must do in order to generate a new debug.keystore file??? 如果是这样我必须做什么才能生成一个新的debug.keystore文件?

Navigate to the .android folder in your home directory ~/.android (Linux,Mac OS) or C:\\Documents and Settings\\[User Name]\\.android in Windows XP or C:\\Users\\.android in Windows Vista or Windows 7, and delete the debug.keystore file. 导航到主目录~/.android (Linux,Mac OS)中的.android文件夹或Windows XP中的C:\\Documents and Settings\\[User Name]\\.android C:\\Users\\.android或Windows Vista中的C:\\Users\\.android或Windows 7,并删除debug.keystore文件。 Then go to eclipse and clean the project, this will create a new debug.keystore file with default validity period 365 days. 然后去eclipse并清理项目,这将创建一个新的debug.keystore文件,默认有效期为365天。

For Linux user: Delete your debug certificate ( debug.keystore and ddms.cfg ) under ~/.android/debug.keystore 对于Linux用户:删除~/.android/debug.keystore下的调试证书( debug.keystoreddms.cfg

For Windows user: Delete your debug certificate ( debug.keystore and ddms.cfg ) under 对于Windows用户:删除调试证书( debug.keystoreddms.cfg
C:\\Documents and Settings\\Administrator\\.android

I am assuming you are developing in eclipse. 我假设你在日食中发展。 select preferences-> android-> build-> default debug store or custom debug store, see path there and find debug.keystore. 选择preferences-> android-> build-> default debug store或自定义调试存储,查看路径并找到debug.keystore。

Thanks dude its i finally figured out what was the error i did in searching for it 谢谢老兄,我终于弄明白我在搜索时遇到了什么错误

friends if u are searching for debug.keystore file in any of the linux distribution make sure u have "show hidden file-> enabled" since by default the ".android" folder is hidden, dont forget to do this :-) 朋友,如果你在任何linux发行版中搜索debug.keystore文件,请确保你有“show hidden file-> enabled”,因为默认情况下“.android”文件夹是隐藏的,不要忘记这样做:-)

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

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