Import key store from eclipse to android studio

AndroidCuriosity picture AndroidCuriosity · Jan 23, 2015 · Viewed 33.9k times · Source

I made research on the topic, but couldn't find a solution:

I created a signed apk from an eclipse project, and i also have the eclipse key store. But i couldn"t find out how to import this key store at signing in Android Studio. These are the following things i already tried:

-adding the key store path as it was created originally by eclipse in Android Studio

-adding the path in Android Studio after adding the .jks extension to the original file

In both cases the error is:

Execution failed for task ':application:packageRelease'.

Failed to read key from keystore

So what is the correct way of adding an eclipse keystore to Android Studio?

Any suggestions appreciated, because i have no idea what goes wrong.

Answer

tachyonflux picture tachyonflux · Jan 23, 2015

I believe this message means that your key alias does not exist. In Android Studio, you can use Build > Generate Signed APK..., enter your key store password, and then browse for a list of key alias in the keystore.