无效密钥库问题?

发布于 2024-11-07 16:24:24 字数 400 浏览 5 评论 0原文

最近我发布了我的新应用程序,今天早上我决定对这个应用程序进行一些更改。但是,每次我在 Eclipse 上导入任何应用程序文件夹时,此错误总是显示“生成最终存档 java.io.IOException 时出错:无效的密钥库格式”,即使当我创建新的 Android 文件时,此错误也会不断显示。请帮我!我已经创建了多个应用程序,但我不想创建新的密钥库。

这是错误的图片!

http://www.fileden.com/files/2006/5 /5/14780/error.png

我已经尝试清理文件夹并重新启动,但没有成功。

请帮助我,我真的非常感谢!

Recently I published my new app, and this morning I decided to make a little changes to this app. However, every time I import any of my app folders on Eclipse, this error always showing up "Error generating final archive java.io.IOException: Invalid keystore format", even when I create a new Android file, this error keep showing up. Please, help me! I have created several apps and I don't want to create a new keystore.

Here is the Image of the error!

http://www.fileden.com/files/2006/5/5/14780/error.png

I already tried to clean the folder and restart but it didn't work.

Please help me, I would really appreciate it a lot thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(8

梦幻的心爱 2024-11-14 16:24:24

删除工作空间中的 .android 文件夹,然后尝试逐步进行。

另外,创建密钥库、密码和别名时要小心。

Delete .android folder in your work space then try with step by step process.

Also, be careful while creating key stores and passwords and alias.

一花一树开 2024-11-14 16:24:24

不久前,当我更改 default.keystore 的通行证时,我遇到了同样的问题

。 检查您用作“debug.keystore”的密钥库是否具有与默认通行证相同的通行证。以下是默认值:

密钥库名称:“debug.keystore”
密钥库密码:“android”
密钥别名:“androiddebugkey”
密钥密码:“android”

Android 应用签名

I had the same problem a while ago, when I changed the pass for the default.keystore

Check if the keystore that you are using as "debug.keystore" has the same pass as the default one. The following are the default:

Keystore name: "debug.keystore"
Keystore password: "android"
Key alias: "androiddebugkey"
Key password: "android"

Android app signing

落日海湾 2024-11-14 16:24:24

这个解决方案对我有用。

从“.android”文件夹中删除“debug.keystore”文件并重新启动Android studio,studio将创建一个新文件。

进入“.android”文件夹并运行 rm debug.keystore。

This solution is worked for me.

Delete "debug.keystore" file from ".android" folder and restart Android studio, studio will create a new file.

Go inside the ".android" folder and run rm debug.keystore.

够运 2024-11-14 16:24:24

这是由于java版本的不同使用造成的

,比如我在D:\Program Files\Java\安装了jdk_1.8,

而对于android studio,它使用D:\Program Files\Android \Android Studio\jre

当我刚刚使用 keytool 时,我收到了无效 keytool 格式的错误

,但是当我像下面这样更改这个 cmd 时,它对我有用!

"D:\Program Files\Android\Android Studio\jre\bin\keytool" -list -v -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android

It is due to different use of java versions

Like I have installed jdk_1.8 at D:\Program Files\Java\

And for android studio, It was using D:\Program Files\Android\Android Studio\jre

When I just used keytool I got error as invalid keytool format

but when I changed this cmd like below it worked for me!

"D:\Program Files\Android\Android Studio\jre\bin\keytool" -list -v -alias androiddebugkey -keystore debug.keystore -storepass android -keypass android
寄意 2024-11-14 16:24:24

尝试删除您的 trust.certs 文件。

如果密钥库实际上已损坏,您将无法重新生成相同的密钥库并更新您的应用程序...这就是为什么备份密钥库非常非常重要

不过,如果在导入项目而不是对应用程序进行密钥签名时弹出错误,我怀疑这是 Eclipse 或 Java 设置的问题...而不是您创建的密钥库的问题。

Try deleting your trusted.certs file.

If the keystore has actually been corrupted, you won't be able to regenerate the same one and update your app... this is why it's very, very important to back up your keystore.

If the error pops up when you're importing a project rather than keysigning your app, though, I suspect it's a problem with Eclipse or your Java setup... not a problem with the keystore you created.

音盲 2024-11-14 16:24:24

我遇到了与 Shubham Jumar Gupta 相同的问题,即 JVM 版本不匹配。

Android Studio 生成的密钥库可能是使用应用内 JDK 11 生成的。

我的 PATH 和 JAVA_HOME 上可用的 keytool.exe 是 JDK 8(通过尝试从 cmd 运行它进行验证)

最终之后有很多乱七八糟的事情,我不得不更新 Gradle 的 Java Home 路径,隐藏在文件 -> 设置 -> 构建、执行、部署 -> 构建工具 -> Gradle 中。然后我必须更改“Gradle JDK”以指向更新版本的 JDK。就我而言,JDK 11 与 Android Studio 内置 JRE 中的内容相匹配,然后我就能够构建我的发布版 APK。

I had the same issue as Shubham Jumar Gupta with JVM version mismatches.

The keystore that Android Studio generated was presumably generated with the in-app JDK 11.

The keytool.exe available on my PATH and my JAVA_HOME was JDK 8 (verified with trying to run it from cmd)

Eventually after a lot of messing around, I had to update Gradle's Java Home path buried in File->Settings->Build, Execution, Deployment->Build Tools->Gradle. Then I have to change the "Gradle JDK" to point to a newer version of the JDK. In my case, JDK 11 matched what came in Android Studio's built-in JRE and then I was able to build my release APK.

李白 2024-11-14 16:24:24

转到该文件夹​​,删除 debug.keystore 并重新启动 Eclipse

C:\Users\INTEL\.android

Go to the folder, delete debug.keystore and restart Eclipse.

C:\Users\INTEL\.android
孤独患者 2024-11-14 16:24:24

我使用下面的版本,我只是清理然后为项目构建并工作。

清理项目

构建项目

android studio 版本

Am using below version, i just did clean then build for the project and worked.

clean project

build project

android studio version

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