Android Studio issue missing missing debug.keystore
Solution 1
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 ofandroid
. -
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
todebug.keystore
. -
Now copy and paste it to (C:\Users<YOUR USERNAME>.android).
-
Re-run the signReport task to generate a new key for APP.
Solution 2
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}
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
}
}
}
...
![Admin](/assets/logo_square_200-5d0d61d6853298bd2a4fe063103715b4daf2819fc21225efa21dfb93e61952ea.png)
Admin
Updated on June 09, 2022Comments
-
Admin about 2 years
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.
Android Studio Messages Gradle Build
File Manager