Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

save keystore password in android studio 3

in android studio 2 you can save key store password and key password but in android studio 3 you can just save key password and you have to write key store password every time you want to build apk is there a settings or way to save key store password in android studio 3?
I Know I can save the password in my build.gradle file but I don't want to password be saved on git.

like image 216
max Avatar asked Nov 04 '17 10:11

max


People also ask

What is keystore password in Android Studio?

On the search box top right, type your Android app name or part of the app name. You will see the result line, if you had saved the password. Double click on it, check the show password checkbox, give your system password when asked, and it will show your keystore password.

Where can I find keystore password?

The key password and keystore password are stored in the keystore itself. It's self-contained. That way the keystore is portable and can be sent to others who can open it (provided they know the key[store] password).


1 Answers

I am having the same issue. But you can add your signing configs this way so they won't be checked into version control:

Put this into ~/.gradle/gradle.properties

RELEASE_STORE_FILE={path to your keystore} RELEASE_STORE_PASSWORD=***** RELEASE_KEY_ALIAS=***** RELEASE_KEY_PASSWORD=***** 

Modify your build.gradle like this:

...     signingConfigs {     release {        storeFile file(RELEASE_STORE_FILE)        storePassword RELEASE_STORE_PASSWORD        keyAlias RELEASE_KEY_ALIAS        keyPassword RELEASE_KEY_PASSWORD    } }  buildTypes {         release {             signingConfig signingConfigs.release         } } 

Source: How to create a release signed apk file using Gradle?

like image 170
Elvis Chidera Avatar answered Oct 14 '22 11:10

Elvis Chidera