Microsoft Dot Net Master

Microsoft Dot Net Master
Microsoft Dot Net Master

Monday, October 25, 2021

ReactNative Metro Bundler not starting automatically

 Replace the code with this one. The path of the file is -

node_modules\metro-config\src\defaults\blacklist.js


var sharedBlacklist = [

  /node_modules[\/\\]react[\/\\]dist[\/\\].*/,

  /website\/node_modules\/.*/,

  /heapCapture\/bundle\.js/,

  /.*\/__tests__\/.*/

];


Snapshots is given below:



ERROR:'keytool' is not recognized as an internal or external command, operable program or batch file

 Try C:\Program Files\Java\jre1.8.0_111\bin>keytool -genkey -v -keystore D:\debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 






React Native Task :app:validateSigningDebug FAILED

 The problem is that the build is looking for the debug keystore and cannot find it.

Keystore file /home/sandeep/react native/react-native-redux/android/app/debug.keystore not found for signing config 'debug'.

There's an issue with the same problem in React Native GitHub. According to the page, you can solve it by creating a debug keystore. Quote from the thread:

You can generate the debug keystore by running this command in the android/app/ directory: 

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


Copy the file from D drive and put in below location

/home/sandeep/react native/react-native-redux/android/app/debug.keystore