inflearn logo
강의

Course

Instructor

Practical React Native for iOS/Android App Development - Basic

Android Emulator Run

안드로이드 에뮬레이터를 찾지를 못합니다 ㅠㅠ

301

junggyoo14104

5 asked

0

IOS 에뮬레이터는 잘작동이 되는데 안드로이드는 불러오질 못하네요

react-native run android 하고 실행을 하면 아래와 같이 에러가 나요

보니까 vi 를 bash 로 작성하던데 저는 지금 iterm2 와 zsh를 사용중입니다 이게 원인일까요 ? 

info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.

(node:25517) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency

(Use `node --trace-warnings ...` to show where the warning was created)

Jetifier found 864 file(s) to forward-jetify. Using 16 workers...

info JS server already running.

/bin/sh: adb: command not found

info Launching emulator...

error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.

warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.

info Installing the app...

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* What went wrong:

A problem occurred configuring project ':app'.

> SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/Users/seize/Desktop/react-native/myRn/android/local.properties'.

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 7s

error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.

Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

FAILURE: Build failed with an exception.

* What went wrong:

A problem occurred configuring project ':app'.

> SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at '/Users/seize/Desktop/react-native/myRn/android/local.properties'.

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 7s

    at checkExecSyncError (child_process.js:616:11)

    at execFileSync (child_process.js:634:15)

    at runOnAllDevices (/Users/seize/Desktop/react-native/myRn/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:94:39)

    at processTicksAndRejections (internal/process/task_queues.js:93:5)

react react-native es6

Answer 2

1

junggyoo14104

해결했습니다~!

zshrc 에 환경변수 설정해주니까 run_android 도 잘되네요! 

0

Wintho

배정규님,

안녕하세요. 지식공유자 Wintho입니다.

 

우선 답변이 늦어진 점 죄송합니다.

현업과 개인사에 치여 인프런 강의 관리를 위한 심적 여유를 갖지 못했습니다…

너그럽게 이해해주시면 감사드리겠습니다..

 

혼자 해결하셨군요!! 덕분에 저도 좋은 정보 하나 얻어갑니다.

 

감사합니다. 

강의 자료 소스코드는 없나요?

0

373

1

RN 자동완성 기능 질문

0

363

1

환경변수 및 SOURCE관련 질문

0

335

1

글로벌로 설치한다는 게 무슨 말인가요? (-g)

0

369

1

VIsual studio code 에서 react-native run-android 실행시 오류

0

927

2

리액트 네이티브에서 안드로이드 실행

0

598

1

vscode

0

441

2

안드로이드 에뮬레이터 에러...

0

1019

1

웹뷰앱 만드는 자세한 방법이 궁금합니다.

0

456

0

App.js 화면 수정 시 안드로이드 emulator 오류

0

372

0

2

0

260

1

ios 구동했을 때 Welcome to React가 아니라 애플

0

517

1

1

0

226

0

진행중 막혀서 질문드립니다

0

403

0

drawer 파트

0

316

0

node.js 설치 오류

0

467

0

vs code 터미널에서의 command not found

0

1610

1

node js 10.15.1 설치가 안됩니다

0

333

0

Unable to boot device in current state: Booted 오류 발생하는경우

1

3214

0

adb 커맨드

1

552

1

Slider만 설치하면 애러가 납니다.

0

343

1

bounces 와 버튼 backgroundColor은 안드로이드에서 적용이 안되는건가요?

0

244

0

오류확인 부탁드립니다.

0

345

0

안드로이드 시뮬 작동 중 오류가 납니다.

0

266

0