Unable to open keystore in AndroidStudio - "Redundant length bytes found"
I also got the same error and I fixed it by following Solution 1 below. you can try Solution 1 to resolve it. Else follow the other Solutions.
Solution 1
Updating JDK from 7 to 8
Solution 2
You can run the following command to list the content of your keystore file:
keytool -list -keystore .keystore
If you are looking for a specific alias, you can also specify it in the command:
keytool -list -keystore .keystore -alias foo
If the alias is not found, it will display an exception:
keytool error: java.lang.Exception: Alias does not exist
Solution 3
In order to get all the details I had to add the -v
option
keytool -v -list -keystore <FileName>.keystore
It will surely help you to solve the error or you can get the contents of your keystore and can generate a new keystore of your app.