본문 바로가기

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 Developers Android 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.
반응형