I want to store my key store in my Android studio Project so that I can use a relative path in the Generate Signed APK Wizard. But I cant see to figure out where the Signed APK Wizard is looking.
How can I use a relative path to my android studio project to my keystore for use with the Generate Signed APK Wizard?
Select Locate and you will find the APK file location. The Signed APK file is by default named app-release. apk. You will find it in the project folder in the app/release directory.
Alternatively, you can use Java 7's Key and Certificate Management Tool keytool to check the signature of a keystore or an APK without extracting any files. The output will reveal the signature owner/issuer and MD5, SHA1 and SHA256 fingerprints of the APK file app. apk or AAB file app.
KeyStore path : select a path in your system (Create a path in any drive eg: *F:\AndroidKeys*)give a name to your key(eg:game). save in here with the specific name for your project (F:\AndroidKeys\game.
Keystore file is stored and secured in Google play. Your APKs will be signed by Google Play with app signing key and published to users. Even if you lost your upload key you can contact with Google and you can update your application after validating your account.
I just tried in Android Studio 1.4 and it seems that the wizard uses paths relative to the project directory.
Example:
/home/dev/project
app
/home/dev/project/app/keystores/debug.keystore
In the wizard following works for me app/keystores/debug.keystore
(notice that path is relative - without leading slash).
Adding following to the build.gradle
in module will use relative path to the debug.keystore as well (notice that the module name is not listed there as we are already inside the app
module)
android {
signingConfigs {
debug {
keyAlias 'androiddebugkey'
keyPassword 'android'
storeFile file('keystore/debug.keystore')
storePassword 'android'
}
}
...
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With