What is the location of the keystore file in Android Studio?

42,120

Solution 1

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.

Solution 2

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 :-(

Solution 3

I found mine C:\Users\username\keystores\myappkey.jks

Solution 4

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)

Solution 5

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

Share:
42,120
Rehan Yousaf
Author by

Rehan Yousaf

I am a software engineer and full-stack .NET & MEAN stack developer with a strong grasp of Object-Oriented Programming (OOP) concepts and best practices. I have over 3 years of experience building and maintaining enterprise-level .NET web applications following the industry-standard design principles of MVC, SOLID and Repository Pattern. My portfolio also includes a diverse set of projects implemented with the MEAN stack. A team player who believes professionalism and communication to be the fundamental pillars of success for individuals and teams. I am always committed to continuously acquiring new skills and knowledge, as well as staying current with new technological developments.

Updated on July 09, 2022

Comments

  • Rehan Yousaf
    Rehan Yousaf almost 2 years

    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.

  • Rehan Yousaf
    Rehan Yousaf over 7 years
    Its the first case. I used the Apk from the Output folder after clicking "Build Apk". Where can I find the keystore file that my Apk was signed with? I didn't sign the Apk myself.
  • sadat
    sadat over 7 years
    Please have a look here stackoverflow.com/questions/9398019/…
  • WhooNo
    WhooNo about 2 years
    could you clarify what the bad news is, and what steps are required to generate a new password if necessary?
  • MaxV
    MaxV about 2 years
    You could not generate new password. In that case, the only option you have is to generate a new keystore file. Long time ago, developer have to use the same keystore to sign application's APK. Missed keystore means developer couldn't update their APK in Google-Play. This days google takes care of that (for good or for bad).