react-native: Keystore file '/Project-Folder/android/app/debug.keystore' not found for signing config 'debug' in react-native 0.60
I created a sample application with react-native version 0.60. I am trying to run application in android. But i am getting this error Keystore file '/Project-Folder/android/app/debug.keystore' not found for signing config 'debug'
. I don’t know how to resolve this error. Please give any suggestions for this issue.
React Native version:
"react": "16.8.6", "react-native": "0.60.0"
Steps To Reproduce
- Trying to run application in android.
- But getting Keystore file error in android.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 66
- Comments: 31 (3 by maintainers)
Commits related to this issue
- Adding the debug.keystore file back Fixes https://github.com/facebook/react-native/issues/25629 that happened after v60 upgrade. — committed to bondehagen/react-native by bondehagen 5 years ago
- Adding the debug.keystore file back (#25807) Summary: Fixes https://github.com/facebook/react-native/issues/25629 that happened after v60 upgrade when using the diff tool https://react-native-communi... — committed to facebook/react-native by bondehagen 5 years ago
- - Exclude debug.keystore from *.keystore gitignore - Check in debug.keystore file from Facebook repo - Based upon documentaiton at: https://github.com/facebook/react-native/issues/25629 — committed to lukevp/DataWedgeReactNative by lukevp 5 years ago
- android build [nfc]: Don't take `debug.keystore` config in RN v60 upgrade. Part of the RN v0.59.10 -> v0.60.0 upgrade [1]. This commit has no constraints on its position relative to the others in the... — committed to chrisbobbe/zulip-mobile by chrisbobbe 4 years ago
- android build [nfc]: Don't take `debug.keystore` config in RN v60 upgrade. This commit marks part of the RN v0.59 -> v0.60 changes to the template app [1] that we don't take. This commit may freely b... — committed to chrisbobbe/zulip-mobile by chrisbobbe 4 years ago
- android build [nfc]: Don't take `debug.keystore` config in RN v60 upgrade. This commit marks part of the RN v0.59 -> v0.60 changes to the template app [1] that we don't take. This commit may freely b... — committed to chrisbobbe/zulip-mobile by chrisbobbe 4 years ago
You can generate the debug keystore by running this command in the
android/app/
directory:keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
Or just download from official template https://raw.githubusercontent.com/facebook/react-native/master/template/android/app/debug.keystore
@priyajainSE, put
debug.keystore
in theandroid/app/
directoryfor everyone like me who is super lazy:
run ☝️ in your project root directory (same as where your
package.json
is) and then check that file into git ☺️Works fine to me Thx
This works 😃 Thanks.
Saving lives huh? Thanx
@Rizwanilahi Yes I think. Personally I added
!android/app/debug.keystore
in the.gitignore
to avoid that.@cmorbitzer @bondehagen, Resolved my issue to place debug.keystore file inside anadroid/app directory. Wait… *.keystore extension files are ignored in Github versioning. It means whenever we clone the project then we have to generate or place debug.keystore file manually?
React Native version:
wow worked for me 😃 First I added the environment variables and then I run on prompt keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 in android/app directory
@hafiztayab I have try once and it’s work for me using password
android
For me solved too. keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
Ubuntu:
Running this command in the android/app/ directory: keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
In folder /home/ - Ctrl + H show all file hidden
Copy file debug.keystore in /home/.android/ to android/app/ directory your project, and rebuild
hi @kiranjd and @cmorbitzer thank you for your response. I missed the file called debug.keystore. So i placed this debug.keystore file in my project folder it solves the error i.e.,
Keystore file '/Project-Folder/android/app/debug.keystore' not found for signing config 'debug'
.if you get “keystore password was incorrect”:
cp ./node_modules/react-native/template/android/app/debug.keystore ./android/app/
Hi what the default password of the debug.keystore file?