.android 文件夹中没有 debug.keystore

发布于 2024-12-22 14:45:39 字数 127 浏览 3 评论 0原文

我正在帮助开发应用程序的某人需要找到她的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(11

初熏 2024-12-29 14:45:39

根据 文档,在 Eclipse 中执行构建或使用ant debug 应该自动生成 ~/.android/debug.keystore

但如果这不起作用,您可以通过运行以下命令手动创建一个:

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"

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 Debug,O=Android,C=US"
烂人 2024-12-29 14:45:39

您可以使用此命令创建密钥库。

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"

清旖 2024-12-29 14:45:39

如果她使用的是 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.

╰◇生如夏花灿烂 2024-12-29 14:45:39

debug.keystore 是在第一次使用它的构建时自动创建的。

The debug.keystore is created automatically on first build that uses it.

戈亓 2024-12-29 14:45:39

试试这个......它将生成文件debug.keystore

C:/

适用于所有版本的 Windows

keytool -genkey -v -keystore C:/debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -keysize 2048 -validity 999999 -dname "CN=Android Debug,O=Android,C=US"

try this....it will generate the file debug.keystore to

C:/

for all versions of Windows

keytool -genkey -v -keystore C:/debug.keystore -alias androiddebugkey -storepass android -keypass android -keyalg RSA -keysize 2048 -validity 999999 -dname "CN=Android Debug,O=Android,C=US"
余生共白头 2024-12-29 14:45:39

在 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 (").

云柯 2024-12-29 14:45:39

我不知道它是如何神奇地工作的!
我删除了我的 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.

赠我空喜 2024-12-29 14:45:39

尝试使用此方法生成 PKCS 密钥。

keytool -importkeystore -srckeystore C:\Users\xxx\.android\debug.keystore -destkeystore C:\Users\xxx\.android\debug.keystore -deststoretype pkcs12

注意:RSA2048 不是推荐的行业标准,上述命令可用于将 RSA2048 中现有的 debug.keystore 迁移到 PKCS 格式

RSA2048 中的旧 debug.keystore 将重命名为 debug.keystore.old 并自动保存

Try this for Generating PKCS keys.

keytool -importkeystore -srckeystore C:\Users\xxx\.android\debug.keystore -destkeystore C:\Users\xxx\.android\debug.keystore -deststoretype pkcs12

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

心凉 2024-12-29 14:45:39

要获取密钥,您应该首先在设备(真实设备或模拟器)上运行应用程序。调试时会自动创建文件。

To get the key you should first run the app on a device(real device or emulator). While debugging the file is automatically created.

噩梦成真你也成魔 2024-12-29 14:45:39

debug.keystore在app调试运行后自动生成

debug.keystore automatically generate after the run of the app debugging

十级心震 2024-12-29 14:45:39

如果您正在寻找 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文