0

What happend to me today is this, whenever I try to RUN an application no matter how simple it is, I get this error:

java.io.IOEception: Invalid Keystore format

I have been running applications on my AVD for weeks without any problem, but today everything went bad.

To be honest, I modified the R.java file of one of the applications because it was showing me a stupid error, that when everything went bad.

skynet
  • 9,898
  • 5
  • 43
  • 52
user1070115
  • 21
  • 1
  • 3
  • Based on error, there could be some problem in your keystore. Have you tried regenerating it? – jsalonen Nov 28 '11 at 21:16
  • You shouldn't modify the R.java file. Have you tried rebuilding the application? Also, at what point in the process of installing and running the application do you get the exception? Can you post the output from the console? – ethan Nov 28 '11 at 21:18

2 Answers2

1

This is because you debug.keystore was expired by default debug keystore is generated and its validity is 1 year.you can find the debug.keystore in User\yourusername\.android\debug.keystore here you have to delete the file debug.keystore and build the project then it will automatically create a debug.keystore file.

Abhijit Chakra
  • 3,201
  • 37
  • 66
0

There are a few questions here on SO that are very similar. Try this one and if it does not work, there are several other questions that have some solutions.

Just type the following into your SO search box: [android] invalid keystore format

Community
  • 1
  • 1
prolink007
  • 33,872
  • 24
  • 117
  • 185