android with intellij - RLidea/dev.docs GitHub Wiki

์•ˆ๋“œ๋กœ์ด๋“œ ์ŠคํŠœ๋””์–ด๊ฐ€ ์ œ๋Œ€๋กœ ์„ค์น˜๋˜์ง€ ์•Š์•„์„œ IntelliJ๋กœ ๊ฐœ๋ฐœํ•˜๊ธฐ๋กœ ํ•จ.

1. ์ž๋ฐ”, ์ฝ”ํ‹€๋ฆฐ ์„ค์น˜

brew cask upgrade
brew tap AdoptOpenJDK/openjdk
brew install --cask adoptopenjdk
brew install kotlin

ํ™˜๊ฒฝ๋ณ€์ˆ˜ ์ถ”๊ฐ€ ์˜ˆ (.zshrc ๋“ฑ)

JAVA_HOME=/usr/local/Cellar/openjdk/15.0.1

2. IntelliJ ์„ค์น˜

https://www.jetbrains.com/ko-kr/idea/

3. SDK ์„ค์น˜

Create New Project๋ฅผ ํ•œ ๋’ค, Android ํƒญ์— Install SDK ๋ฒ„ํŠผ์ด ์žˆ๋‹ค.

4. gradle ํŒŒ์ผ ์ˆ˜์ •

์ฐธ๊ณ : https://developer.android.com/topic/libraries/view-binding/migration?authuser=1

๊ธฐ๋ณธ ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•œ ๋’ค, ์ฝ”ํ‹€๋ฆฐ์œผ๋กœ ๋นŒ๋“œํ•˜๋ ค ํ•˜๋ฉด ์˜ค๋ฅ˜๊ฐ€ ๋‚œ๋‹ค. build.gradleํŒŒ์ผ์„ ์ˆ˜์ •ํ•ด์ค˜์•ผ ํ•œ๋‹ค.

์ถ”๊ฐ€:

android {
    ...
    buildFeatures {
        viewBinding true
    }
}

์ œ๊ฑฐ:

apply plugin: `kotlin-android-extensions`

5. apk ๋นŒ๋“œ

Build > Generate Signed Bundle / APK... ์ฐธ๊ณ :

6. ์—๋ฎฌ๋ ˆ์ดํ„ฐ

Tool > Android > SDK Manager