[React Native] SDK location not found.

์ง€ํ˜œ์˜ Devlog ๐Ÿ“šยท2021๋…„ 6์›” 22์ผ
0
post-thumbnail

React Native ๊ณต๋ถ€๋ฅผ ํ•˜๋Š” ์ค‘ Android emulator ๊ตฌ๋™์— ์—๋Ÿฌ๊ฐ€ ์ƒ๊ฒผ๋‹ค..! (์ •๋ง ๊ฐœ๋ณต์น˜ ๊ฐ™์€ ์šฐ๋ฆฌ React Native ^^ ๐Ÿก๐Ÿ’•)

์—๋Ÿฌ ๋‚ด์šฉ์€ ํ•˜๊ธฐ์™€ ๊ฐ™๋‹ค.

* 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/*USERNAME*/Documents/dev/React-Native/my_first_app/android/local.properties'.

โœ… SDK location not found.
๋ฌธ๊ตฌ ๊ทธ๋Œ€๋กœ SDK ์œ„์น˜๋ฅผ ์ฐพ์„ ์ˆ˜ ์—†๋Š” ๊ฒƒ์ด ๋ฌธ์ œ์˜ ์›์ธ์ด์—ˆ๋‹ค.
๋‹ค์Œ๊ณผ ๊ฐ™์€ ๋ฐฉ๋ฒ•์œผ๋กœ ์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ๋‹ค.

  1. React Native root ํ”„๋กœ์ ํŠธ์—์„œ android ๋””๋ ‰ํ† ๋ฆฌ๋กœ ์ ‘๊ทผํ•œ๋‹ค.
  2. android ๋””๋ ‰ํ† ๋ฆฌ์—์„œ local.properties ํŒŒ์ผ์„ ์ƒ์„ฑํ•œ๋‹ค.
  3. ์•„๋ž˜ ์ฝ”๋“œ๋ฅผ ์ž…๋ ฅํ•œ๋‹ค.

๐ŸŽ For Mac users
sdk.dir = /Users/**USERNAME**/Library/Android/sdk

๐ŸชŸ For windows users
sdk.dir=C\:\\Users\\**USERNAME**\\AppData\\Local\\Android\\sdk

0๊ฐœ์˜ ๋Œ“๊ธ€