Every time I want to sign my aok I get the failure Missing debug.keystore
it says that it actually should me located under this path Store: C:\Users\jamie\.android\debug.keystore
but there isn't any keystore file.
How can I create one ?
Please explain it for a really silly person.
The default keystore file: debug. keystore is present in the folder . android which is usually located in the default home folder of your operating system of the user who installed that Android SDK.
I know this comes late but I hope it helps those that come in the future. To generate a new keystore do the following:
Type keytool -alias "AndroidDebugKey" -genkeypair
in the terminal of your android studio give it a password of android
.
The rest of the fields or questions asked after that don't matter so just press Enter.
Go to your home directory (C:\Users<YOUR USERNAME>) and look for a file named as .keystore
.
Rename .keystore
to debug.keystore
.
Now copy and paste it to (C:\Users<YOUR USERNAME>.android).
Re-run the signReport task to generate a new key for APP.
You can generate a keystore using the keytool. It should be included in your JDK -
-genkeypair {-alias alias} {-keyalg keyalg} {-keysize keysize}
{-sigalg sigalg} [-dname dname] [-keypass keypass] {-validity valDays}
{-storetype storetype} {-keystore keystore} [-storepass storepass] {-providerClass provider_class_name {-providerArg provider_arg}}
{-v} {-protected} {-Jjavaoption}
Key Tool Tutorial
You can set the location of your keystore in the gradle file. For example -
...
android {
...
defaultConfig { ... }
signingConfigs {
release {
storeFile file("myreleasekey.keystore")
storePassword "password"
keyAlias "MyReleaseKey"
keyPassword "password"
}
}
buildTypes {
release {
...
signingConfig signingConfigs.release
}
}
}
...
Signing Applications
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