# ์—๋Ÿฌ ํ•ด๊ฒฐ๐Ÿ”‘ npx react-native run-android ์‹œ "error Failed to install the app. Make sure you have an Android emulator running or a device connected."

Android Studio๋ฅผ ์„ค์น˜ ํ›„ ํ•œ๋ฒˆ๋„ emulator๋ฅผ ์‚ฌ์šฉํ•˜์ง€ ์•Š์•˜์„ ๊ฒฝ์šฐ ๋ฐœ์ƒํ•˜๋Š” ์—๋Ÿฌ์˜€๋‹ค.

Error: Failed to install the app. Make sure you have an Android emulator running or a device connected

์•ˆ๋“œ๋กœ์ด๋“œ ์ŠคํŠœ๋””์˜ค๋ฅผ ๋“ค์–ด๊ฐ€์„œ ์—๋ฎฌ๋ ˆ์ดํ„ฐ ์„ค์ •์„ ํ•ด์ฃผ์–ด์•ผ ํ•œ๋‹ค.

  • new project ํด๋ฆญ ํ›„ ์ž„์˜๋กœ ์˜ต์…˜์„ ์„ ํƒํ•ด์„œ finish ํด๋ฆญ
  • ์šฐ์ธก ์ƒ๋‹จ ๋ฒ„ํŠผ ์ค‘์— AVD Manager๋ผ๊ณ  ํˆดํŒ์ด ๋œจ๋Š” ๋ฒ„ํŠผ ํด๋ฆญ(ํ•ธ๋“œํฐ ๋ชจ์–‘)
  • create virtual deviceํด๋ฆญ ํ•ด์„œ ๊ธฐ๋ณธ๊ฐ’์ธ Nexus 5X API 30์œผ๋กœ ๊ธฐ๊ธฐ ์ถ”๊ฐ€
  • ๋‹ค์‹œ ํ”„๋กœ์ ํŠธ๋กœ ๋Œ์•„๊ฐ€์„œ npx react-native run-android ์‹คํ–‰ํ•˜๋ฉด ํ•ด๋‹น ์—๋Ÿฌ ์—†์ด ์ž˜ ์‹คํ–‰๋œ๋‹ค.
Last Updated: a year ago