React Native: How to fix "Execution failed for task ':app:validateSigningDebug'"

When building your android app with npx react-native run-android or yarn android and you encounter this build error:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:validateSigningDebug'.
> Keystore file '/Users/user/Documents/NobsApp/android/app/debug.keystore' not found for signing config 'debug'.

To fix it, navigate through terminal to

yourApp/android/app

and execute

keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000

Answer the questions that follow and type “y” for the last one that looks like [no]:.

Finally hit enter and rebuild your project.

If you enjoyed this article, please Like, share and drop your comments .

Follow me on twitter: @talk2dera