# 문제상황
다음과 같은 에러 코드가 발생하는데,
RN 프로젝트에 assets 디렉토리가 없거나 gradlew 문제인 경우가 많음
# 해결방법
# 프로젝트 > android > app > src > main assets 디렉토리 생성 위 경로에서 mkdir assets |
# command - 경로 : 프로젝트 > android ./gradlew clean |
# command - 경로 : 프로젝트 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 |
끝.
다시, npm run android
[참고] https://dev-yakuza.github.io/ko/react-native/android-running-on-device/
https://medium.com/@adityasingh_32512/solved-unable-to-load-script-from-assets-index-android-bundle-bdc5e3a3d5ff
'LANGUAGE > React Native' 카테고리의 다른 글
[RN] Delete 'CR' eslint(prettier/prettier) (1) | 2020.06.15 |
---|---|
[RN] watchman 설치 (windows10) (0) | 2020.06.14 |
[RN] React-Native 프로젝트 생성 및 빌드 (0) | 2020.06.13 |
[RN] react-native 환경 구축, windows / expo(x) (0) | 2020.06.13 |
[RN] React-Native expo 개발환경, extension, settings (0) | 2020.06.12 |