I just recently found out the importance of backing up the keystore file in Android Studio. I have two apps published using this computer. Both times I simply used "Generate APK" in Android Studio Build drop down. I would really appreciate some instructions on where exactly can I find the keystore file that Android Studio used to sign those apks with and what else do I need to do to be able to publish updates to my apps from PC's other than this one. Thank you.
If you used the apk after clicking "Build Apk", its a debug build apk from the output folder. Or if you used "Generate Signed Apk" you must have used a key as there is an option to create one.
Try to check the menu:
Build
-> Generate Signed APK
The path to the keystore would be displayed on the first line of the new window.
But if you don't remember the passwords then I have some bad news for you :-(
There's a good chance you'll find it in "C:\Users\.gradle\gradle.properties". From Android Studio, you can find that file in "Gradle Scripts->gradle.properties(Global Properties)
Go To: Build -> Generate Signed APK
Select APK.
You would then be required to choose an existing keystore path or create one if u don't created it then create a new one... after that Go to Project Structure and set the keystore path that you have created... hope it works
If you used the apk after clicking "Build Apk", its a debug build apk from the output folder. Or if you used "Generate Signed Apk" you must have used a key as there is an option to create one.
Go To:
Build -> Generate Signed APK
Select Either Android App Bundle or APK.
You would then be required to choose an existing keystore path or create one
I finally could figure the issue out.
To get the Key Alias: I copied the keytool.exe and my keystore file into C:\Program Files\Java\jdk1.7.0_71\bin folder. Then from command prompt I wrote: keytool -list -v -keystore key.jks
It will also ask for keystore password then. Then it will show you the key alias and Certificate fingerprints and other info.
Then I again tried to Generate Signed Apk for the project, I provided keystore, keystore password, key alias and provided the same password. Then it asks for master password, I tried with the same and it failed. With the reset option I reset the master password here.
© 2022 - 2024 — McMap. All rights reserved.