[메모] [react-native] 오류 : Unable to load script. Make...

Hong·2022년 3월 5일
0

react-native 최초 설치 후 안드로이드 스튜디오로 실행할 경우 위와 같은 오류 발생할때

  1. [패키지명]/android/app/src/main/assets 폴더가 있는지 확인하고 없으면 생성
  1. [패키지명]/android 폴더에서 ./gradlew clean 실행
  1. [패키지명] 폴더에서 아래 명령어 실행
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
  1. react-native run-android

[퍼옴: https://dlevelb.tistory.com/1142]

profile
코딩 배우기

0개의 댓글