-
Notifications
You must be signed in to change notification settings - Fork 0
android with intellij
Centell edited this page Jan 4, 2021
·
3 revisions
안드로이드 스튜디어가 제대로 설치되지 않아서 IntelliJ로 개발하기로 함.
brew cask upgrade
brew tap AdoptOpenJDK/openjdk
brew install --cask adoptopenjdk
brew install kotlin
환경변수 추가 예 (.zshrc 등)
JAVA_HOME=/usr/local/Cellar/openjdk/15.0.1
https://www.jetbrains.com/ko-kr/idea/
Create New Project를 한 뒤, Android 탭에 Install SDK 버튼이 있다.
참고: https://developer.android.com/topic/libraries/view-binding/migration?authuser=1
기본 프로젝트를 생성한 뒤, 코틀린으로 빌드하려 하면 오류가 난다.
build.gradle파일을 수정해줘야 한다.
추가:
android {
...
buildFeatures {
viewBinding true
}
}
제거:
apply plugin: `kotlin-android-extensions`
Build > Generate Signed Bundle / APK... 참고:
- https://appsnuri.tistory.com/20
- https://blog.naver.com/PostView.nhn?blogId=ifthe1201&logNo=221412112020
Tool > Android > SDK Manager