* React Native 신규 프로젝트 생성
터미널에서 프로젝트를 생성할 위치로 이동하여 아래 명령어를 사용하여 프로젝트를 생성합니다.
npx react-native init 프로젝트명
또는
react-native init 프로젝트명
* 안드로이드 실행
생성한 프로젝트 위치에서 안드로이드 실행합니다.
npm run android
또는
react-native run-android
동일하게 설정했는데도 오류가 난다면 아래 참고
cli.init is not a function 오류
cli로 프로젝트를 생성하면 아래와 같은 오류가 발생합니다. (npx react-native init 프로젝트명 명령어 실행 후 오류) TypeError: cli.init is not a function Installing react-native... Consider installing yarn to make this faste
yun5o.tistory.com
Execution failed for task ':react-native-gradle-plugin:compileKotlin' 오류
npm run android 프로젝트명 을 실행하니 오류가 발생했습니다. error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`. > Task :react-native-gradle-plugin:compileKotlin FAILED 'compileJava' task (cu
yun5o.tistory.com
A problem occurred evaluating project ':app' 오류
npm run android 프로젝트명 을 실행하니 처음에는 잘 실행되나 싶었으나 오류가 발생했습니다. FAILURE: Build failed with an exception. * Where: Build file 'D:\app\weightLog\andro id\app\build.gradle' line: 1 * What went wrong: A
yun5o.tistory.com
'프로그래밍 > React Native' 카테고리의 다른 글
[React Native] 리액트 네이티브 개발환경 설정(5/6) - 안드로이드 스튜디오 설치 (0) | 2023.02.10 |
---|---|
[React Native] 리액트 네이티브 개발환경 설정(4/6) - JDK 설치 (0) | 2023.01.19 |
[React Native] 리액트 네이티브 개발환경 설정(3/6) - React Native CLI 설치 (0) | 2023.01.17 |
[React Native] 리액트 네이티브 개발환경 설정(2/6) - Nodejs 설치 (0) | 2023.01.16 |
[React Native] 리액트 네이티브 개발환경 설정(1/6) - 시작하기 (0) | 2023.01.15 |
댓글