Invalid Keystore problem?

2019-01-28 05:49发布

问题:

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!

回答1:

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



回答2:

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.



回答3:

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.



回答4:

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

C:\Users\INTEL\.android