React Native 0.57.1 Android Duplicate Resources

Here is the simple solution :

  1. Delete build inside android/app folder
  2. Delete build inside android folder
  3. run rm -rf $HOME/.gradle/caches/
  4. Open build.gradle –> android/app/build.gradle
  5. comment this line

//apply from: "../../node_modules/react-native/react.gradle"

  1. Delete index.android.bundle file from assets folder and re-create using react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res

  2. run react-native run-android Or
    run react-native run-android --variant=release

Happy Coding..

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)