Unable to load script.Make sure you are either running
....
해결방안
Step 1: Create a directory in android/app/src/main/assets
Linux command: mkdir android/app/src/main/assets
Step 2: Rename index.android.js
(in root directory) to index.js
(Maybe there is an index.js
file in which case you do not need to rename it) then run the following 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
Step 3: Build your APK: react-native run-android
Enjoy :)
'프로그램개발 > 안드로이드(android)' 카테고리의 다른 글
WebView 안드로이드 웹뷰 생성하기 (0) | 2020.07.08 |
---|---|
초기 개발자 버전 살펴보니… 안드로이드 11의 특징 11가지 (0) | 2020.02.25 |
안드로이드 스튜디오에서 WebView를 이용한 첫번째 apk파일 (0) | 2019.09.03 |
Expo Web(React Native for web) 튜토리얼 (0) | 2019.07.08 |
안드로이드 롤리팝의 흥미로운 기능 10가지 (0) | 2014.11.21 |