Answers for "app keeps on crashing react native"

0

app keeps on crashing react native

My app kept crashing because I had changed the name of the app in a few places. 
Make sure your app name is the same everywhere. Check if the folder name in

  android/app/src/main/java/com/<appname>/MainActivity.java
  android/app/src/main/java/com/<appname>/MainApplication.java

has the same name as that of your app in manifest file in

	android/app/src/main/AndroidManifest.xml
  
  
##### Another solution ########
1. clean your build 
cd android ./gradlew clean

2. Try bundling 
./gradlew bundleRelease

3. Exit android folder 
cd ../

4. Try running 
npx react-native run-android --variant=release
Posted by: Guest on August-18-2021

Code answers related to "app keeps on crashing react native"

Code answers related to "Javascript"

Browse Popular Code Answers by Language