본문 바로가기

ReactNative9

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 problem occurred evaluating project ':app'. > Failed to apply plugin 'com.android.internal.application'. > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some .. 2023. 2. 16.
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 (current target is 1.8) and 'compileKotlin' task (current target is 11) jvm target compatibility should be set to the same Java version. 1 actionable task: 1 executed FAILURE: Build f.. 2023. 2. 14.
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 faster: https://yarnpkg.com npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated npm WARN.. 2023. 2. 12.
[React Native] 리액트 네이티브 개발환경 설정(6/6) - 프로젝트 생성 및 실행 * 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.. 2023. 2. 11.
[React Native] 리액트 네이티브 개발환경 설정(5/6) - 안드로이드 스튜디오 설치 * 안드로이드 스튜디오 설치아래 홈페이지로 이동하여 안드로이드 스튜디오를 다운로드합니다. Download Android Studio & App Tools - Android DevelopersAndroid Studio provides app builders with an integrated development environment (IDE) optimized for Android apps. Download Android Studio today.developer.android.com 다운로드한 파일을 실행시키고 Next 버튼을 클릭합니다. Android Virtual Device에 선택이 되어있는지 확인한 후 Next를 클릭합니다. 설치될 경로를 설정한 후 Install 버튼을 클릭합니다. 설치가 완료되었.. 2023. 2. 10.
[React Native] 리액트 네이티브 개발환경 설정(4/6) - JDK 설치 JDK를 설치해야 하는데 이미 설치가 되어 있어서 따로 설치를 진행하지 않았습니다. * JDK 설치하기 아래 링크에 접속하여 본인의 환경에 맞는 운영체제의 JDK를 설치해 줍니다. 설치 시 오라클 계정이 필요합니다. 자세한 과정은 생략합니다. Download the Latest Java LTS Free Subscribe to Java SE and get the most comprehensive Java support available, with 24/7 global access to the experts. www.oracle.com * 환경변수 설정 JDK 설치 후 환경변수를 설정 해야합니다. 내 PC > 우클릭 속성 > 고급 시스템 설정으로 들어와서 환경변수 버튼을 선택합니다. 사용자 변수를 새로 만들.. 2023. 1. 19.