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

  1. Trying to run application in android.
  2. 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

Most upvoted comments

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

@priyajainSE, put debug.keystore in the android/app/ directory

for everyone like me who is super lazy:

curl https://raw.githubusercontent.com/facebook/react-native/master/template/android/app/debug.keystore > android/app/debug.keystore

run ☝️ in your project root directory (same as where your package.json is) and then check that file into git ☺️

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

Works fine to me Thx

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

This works 😃 Thanks.

@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:

"react": "16.8.6",
"react-native": "0.60.5"

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?