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... ์ฐธ๊ณ :
- https://appsnuri.tistory.com/20
- https://blog.naver.com/PostView.nhn?blogId=ifthe1201&logNo=221412112020
6. ์๋ฎฌ๋ ์ดํฐ
Tool > Android > SDK Manager