Android/Eclipse:在哪里可以找到 /Users/USER_NAME/.android/debug.keystore 文件夹?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6915847/
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
Android/Eclipse: where can I find the /Users/USER_NAME/.android/debug.keystore folder?
提问by Regis_AG
To use the Google Maps API, I need to generate a debug API key. For this, I need to find the /Users/USER_NAME/.android/debug.keystore folder...but nothing on my Mac ! Do you know how to find this folder ???
要使用 Google Maps API,我需要生成一个调试 API 密钥。为此,我需要找到 /Users/USER_NAME/.android/debug.keystore 文件夹......但我的 Mac 上什么也没有!你知道怎么找到这个文件夹吗???
Note that I run Eclipse on a Mac. I checked in Eclipse=>Preferences=>Android=>Debug that the default debug keystore is indeed /Users/USER_NAME/.android/debug.keystore but no way to find it.
请注意,我在 Mac 上运行 Eclipse。我检查了 Eclipse=>Preferences=>Android=>Debug 默认调试密钥库确实是 /Users/USER_NAME/.android/debug.keystore 但没有办法找到它。
Thanks !!
谢谢 !!
回答by Phil
Open the terminal and type cd ~/.android
. Next, type open .
and your Finder
window will open displaying all the files there, including debug.keystore
.
打开终端并输入cd ~/.android
。接下来,键入open .
,您的Finder
窗口将打开,显示那里的所有文件,包括debug.keystore
.
回答by Regis_AG
The folder .android
is probably hidden. Navigate using the console/terminal.
该文件夹.android
可能已隐藏。使用控制台/终端进行导航。
回答by John Paul Manoza
I encountered this problem before. This UNIX Code solves the error.
我以前遇到过这个问题。此 UNIX 代码解决了该错误。
In the terminal, type
在终端中,输入
cp -r /var/root/.android /tmp
This command will copy the entire .android directory to your temp folder. Maybe the reason for this is that android emulator keeps on searching the .android directory from your Mac's tmp folder. The installer keeps that .android directory to your root directory not on the tmp directory. You have to manually copy the directory to your /tmp directory everytime your mac starts.
此命令会将整个 .android 目录复制到您的临时文件夹。可能是因为 android 模拟器不断从 Mac 的 tmp 文件夹中搜索 .android 目录。安装程序将该 .android 目录保存在您的根目录中,而不是在 tmp 目录中。每次启动 mac 时,您都必须手动将目录复制到 /tmp 目录。
Mac hides every directory which names starts with a symbol.
Mac 隐藏名称以符号开头的每个目录。