Last active
September 24, 2020 08:47
-
-
Save ncole458/8060b026b7f5075742d04fc192ad042e to your computer and use it in GitHub Desktop.
Fix React Native cache issues on Android
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FIX CACHE ISSUES ON ANDROID – REACT NATIVE BUILD | |
cd android && cd app && rm -r build | |
cd android && ./gradlew clean | |
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 | |
cd android &&chmod +x gradlew | |
npm start --reset-cache | |
react-native run-android | |
--- | |
or CLEAR CACHE: | |
rm -rf /tmp/haste-map-react-native-packager-* | |
rm -rf /tmp/metro-bundler-cache-* | |
npm start --reset-cache | |
rm -rf node_modules | |
npm install | |
react-native run-android | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment