๐ฏ ์์ฝ
• ADB ๋ฐ Scrcpy ์ค์น (brew install android-platform-tools scrcpy)
• ADB ๋ฌด์ ์ฐ๊ฒฐ ์ค์ (adb tcpip 5555 → adb connect [IP]:5555)
• Scrcpy๋ก ํ๋ฉด ๋ฏธ๋ฌ๋ง (scrcpy)
• Android Studio์์ ๋๋ฐ์ด์ค ์ ํ ํ ๋๋ฒ๊น
1๏ธโฃ Android ๊ฐ๋ฐ ๋ชจ๋ ํ์ฑํ
1. Android ๊ธฐ๊ธฐ์์ “๊ฐ๋ฐ์ ์ต์ ” ํ์ฑํ
• ์ค์ > ํด๋์ ํ ์ ๋ณด > ๋น๋ ๋ฒํธ๋ฅผ 7๋ฒ ์ฐ์ ํฐ์นํ์ฌ ๊ฐ๋ฐ์ ์ต์ ์ ํ์ฑํํฉ๋๋ค.
• ์ค์ > ์์คํ > ๊ฐ๋ฐ์ ์ต์ ์์ USB ๋๋ฒ๊น ์ ํ์ฑํํฉ๋๋ค.
2. ๋ฌด์ ๋๋ฒ๊น ํ์ฑํ
• ์ค์ > ์์คํ > ๊ฐ๋ฐ์ ์ต์ > ๋ฌด์ ๋๋ฒ๊น ์ ํ์ฑํํฉ๋๋ค.
2๏ธโฃ Mac๊ณผ Android ๊ธฐ๊ธฐ ์ฐ๊ฒฐ
โ ADB๋ฅผ ์ด์ฉํ ๋ฌด์ ์ฐ๊ฒฐ
1. ADB(์๋๋ก์ด๋ ๋๋ฒ๊ทธ ๋ธ๋ฆฌ์ง) ์ค์น (Homebrew ์ด์ฉ)
brew install android-platform-tools
• ์ค์น ํ์ธ: adb version
2. USB๋ก Android ๊ธฐ๊ธฐ๋ฅผ Mac์ ์ฐ๊ฒฐ
adb devices
• ๊ธฐ๊ธฐ๊ฐ ์ ์์ ์ผ๋ก ์ฐ๊ฒฐ๋์๋์ง ํ์ธํฉ๋๋ค.
3. ๋ฌด์ ์ฐ๊ฒฐ ์ค์
adb tcpip 5555
• ๊ธฐ๊ธฐ์ ADB ํฌํธ๋ฅผ ๋ฌด์ ๋๋ฒ๊น ์ฉ์ผ๋ก ๋ณ๊ฒฝํฉ๋๋ค.
4. IP ์ฃผ์ ํ์ธ (Android ๊ธฐ๊ธฐ)
• ์ค์ > ํด๋์ ํ ์ ๋ณด > ์ํ ์ ๋ณด > IP ์ฃผ์์์ ํ์ธ ๊ฐ๋ฅ
• ๋๋ ํฐ๋ฏธ๋์์ ํ์ธ:
adb shell ip -f inet addr show wlan0
5. ๋ฌด์ ์ผ๋ก ์ฐ๊ฒฐ
adb devices
• 192.168.1.100:5555 device ํํ๋ก ํ์๋๋ฉด ๋ฌด์ ์ฐ๊ฒฐ ์๋ฃ!
3๏ธโฃ ํ๋ฉด ๋ฏธ๋ฌ๋ง (Scrcpy ์ด์ฉ)
1. Scrcpy ์ค์น
brew install scrcpy
• ์ค์น ํ์ธ: scrcpy --version
2. ๋ฌด์ ์ผ๋ก ๊ธฐ๊ธฐ ํ๋ฉด ๋ฏธ๋ฌ๋ง ์คํ
scrcpy
• ์ฑ๊ณตํ๋ฉด Android ํ๋ฉด์ด Mac์ ๋ํ๋จ.
4๏ธโฃ Android Studio์์ ๋ฌด์ ๋๋ฒ๊น
1. Android Studio ์คํ
2. Run > Select Device์์ ๋ฌด์ ์ผ๋ก ์ฐ๊ฒฐํ ๊ธฐ๊ธฐ๋ฅผ ์ ํ
3. ์ฑ์ ์คํํ๊ณ ๋๋ฒ๊น ์์!
'android' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[Android] Import Sceneform Asset ํ๋๋ฐฉ๋ฒ (0) | 2021.07.21 |
---|