[React Native] 오류 : Unable to load script. Make sure youre dither running a Metro server

치치·2021년 4월 15일
0

React Native Error

목록 보기
1/4

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

  1. [패키지명]/android/app/src/main/assets 폴더가 있는지 확인하고 없으면 생성

  2. [패키지명]/android 폴더에서 ./gradlew clean 실행

  3. [패키지명] 폴더에서 아래 명령어 실행

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
profile
안녕하세요. 개발자입니다.

0개의 댓글