current position:Home>React native Android phone cannot be opened after installation. Flash back!

React native Android phone cannot be opened after installation. Flash back!

2022-05-15 02:18:37Wang Haihu

Execute... In the project root directory

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

After successful implementation, it will be in /android/app/src/main/assets Let's generate a Bundle file


Come again when you're done android Execute under directory ./gradlew assembleRelease

 

If it still doesn't work
find android/app/src/main/java Delete drawable

Just repack it again

copyright notice
author[Wang Haihu],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/132/202205120523334013.html

Random recommended