0% found this document useful (0 votes)
27 views1 page

Solution

Uploaded by

Raman deep
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views1 page

Solution

Uploaded by

Raman deep
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

https://github.

com/react-native-community/upgrade-support/issues/38

https://gist.github.com/palkerecsenyi/6c09728996c4f982dc3bd11ad757c45b#file-app-
build-gradle-L81

https://github.com/facebook/react-native/issues/6745

Update

I solved this issue by doing this before each build:

npx react-native bundle --platform android --dev false --entry-file index.js --


bundle-output android/app/src/main/assets/index.android.bundle
and then run

cd android
./gradlew assembleRelease
Adding the --assets-dest option to the command then gave a duplicate assets error
when building, so I skipped that and it works perfectly.

Also, I tried experimenting with the version of hermes-engine, but that had no
effect. This issue doesn't seem to be anything to do with Hermes.

You might also like