.android 文件夹中没有 debug.keystore
我正在帮助开发应用程序的某人需要找到她的 debug.keystore - 我的位于我的 .android 文件夹中,但是当我在她的计算机上导航到那里时,它不在那里。
是否需要做一些事情才能让它出现?它在哪里/如何再次生成?
Someone I'm helping with an application needs to locate her debug.keystore - mine is in my .android folder, but when I navigate there on her computer it is not there.
Does something need to be done in order for it to appear? Where is it / how can it be generated again?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(11)
根据 文档,在 Eclipse 中执行构建或使用
ant debug
应该自动生成~/.android/debug.keystore
。但如果这不起作用,您可以通过运行以下命令手动创建一个:
According to the documentation, performing a build in Eclipse or using
ant debug
should automatically generate~/.android/debug.keystore
.But in case this doesn't work, you can create one manually by running:
您可以使用此命令创建密钥库。
keytool -genkey -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "CN= Android 调试,O=Android,C=US"
You can create keystore using this command..
keytool -genkey -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Android Debug,O=Android,C=US"
如果她使用的是 Eclipse,则转到 Windows ->首选项
选择 Android -> 在那里构建
,您将看到默认调试密钥库:“路径”
看看是否可以在那里找到它。
If she is using Eclipse then go to Windows -> Preferences
Select Android -> Build
There you will see Default debug keystore: "Path"
See if you can locate it there.
debug.keystore
是在第一次使用它的构建时自动创建的。The
debug.keystore
is created automatically on first build that uses it.试试这个......它将生成文件debug.keystore
适用于所有版本的 Windows
try this....it will generate the file debug.keystore to
for all versions of Windows
在 Windows 7 上,我必须使用 John 建议的命令手动创建该文件。不要忘记将路径括在一对双引号 (") 中。
On Windows 7, I had to create the file manually using John's suggested command. Don't forget to enclose the path in a pair of double quotes (").
我不知道它是如何神奇地工作的!
我删除了我的 debug.keystore,再次构建我的项目并在默认位置 ~/.android/debug.keystore 中查找 debug.keystore,但没有找到 debug.keystore。
再次构建项目并查找 debug.keystore,没有运气!
然后我打开 eclipse 进入 Windows ->首选项,选择Android ->建造
请参阅默认调试密钥库:“路径”。
现在再次在默认位置 ~/.android/debug.keystore 中查找 debug.keystore,找到了 debug.keystore。
尝试了很多次,成功了。
I don't know how it work magically!
I deleted my debug.keystore, build my project again and look for debug.keystore in default location ~/.android/debug.keystore, din't find debug.keystore.
Again build project and look for debug.keystore, no luck!
Then I open eclipse go to Windows -> Preferences,Select Android -> Build
See Default debug keystore: "Path".
Now again looked for debug.keystore in default location ~/.android/debug.keystore, found debug.keystore.
Tried so many times, it worked.
尝试使用此方法生成 PKCS 密钥。
注意:RSA2048 不是推荐的行业标准,上述命令可用于将 RSA2048 中现有的 debug.keystore 迁移到 PKCS 格式
RSA2048 中的旧 debug.keystore 将重命名为 debug.keystore.old 并自动保存
Try this for Generating PKCS keys.
Note: RSA2048 is not a recommended industry standard and the above command can be used to migrate the existing debug.keystore in RSA2048 to PKCS format
The old debug.keystore which was in RSA2048 will be renamed to debug.keystore.old and saved automatically
要获取密钥,您应该首先在设备(真实设备或模拟器)上运行应用程序。调试时会自动创建文件。
To get the key you should first run the app on a device(real device or emulator). While debugging the file is automatically created.
debug.keystore在app调试运行后自动生成
debug.keystore automatically generate after the run of the app debugging
如果您正在寻找 debug.keystore 文件并使用 React Native 进行开发。我在 android/app 文件夹中找到了它。无需在 Android Studio 上运行
If you are looking for the debug.keystore file and are using react native for development. I found it inside of the android/app folder. No need to run it on Android Studio