본문 바로가기
개발일지/개발일지! error out🙅

[react-native] npx react-native run-android 에러 해결하기

by -제이리 2022. 12. 2.
728x90
320x100

문제상황

 

npx react-native run-android을 실행하려 하는데 에러가..

 

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

error Failed to start the app.
Error: spawnSync adb ENOENT

 

 

문제원인

android-platform-tools 가 없어서 나는 오류라고 한다.

공식문서에 보면 안드로이드 스튜디오를 설치할때  설치마법사가 나올때 아래항목을 체크하라 되어있었다.

하지만 그사이에 버전이 업데이트된건지 설치마법사는 안나오고 바로 화면이 나와서 sdk등을 수동으로 다운받았었다.

중간에 설치가 누락이 됐었나보다. 


 

해결방법

brew install --cask android-platform-tools

//버전확인
adb version

 

드디어 react native구동 완료.. 개발환경설정만 하루하고 반나절걸렸다..ㅎ

자잘한 에러부터 삽질까지.. 그중 m1칩도 한몫한것 같다..🫠  

 

 

728x90
320x100

댓글