Skip to content

Instantly share code, notes, and snippets.

@ncole458
Last active September 24, 2020 08:47
Show Gist options
  • Save ncole458/8060b026b7f5075742d04fc192ad042e to your computer and use it in GitHub Desktop.
Save ncole458/8060b026b7f5075742d04fc192ad042e to your computer and use it in GitHub Desktop.
Fix React Native cache issues on Android
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