최근 안드로이드 개발에 감이 떨어질까봐 간단한 앱 프로젝트를 하나 진행해보았다.
역시나 DI 와 반복되는 코드가 귀찮기 때문에 AndroidAnnotation 을 적용해볼까 하여 최신 버전을 적용하였는데
이상하게 동작이 안된다.
검색하다보니 추가적인 옵션이 필요하다 ㅠㅠ
https://github.com/androidannotations/androidannotations/issues/2191#issuecomment-454318147
AA 4.5.2 with build:gradle: 3.3.0 not work · Issue #2191 · androidannotations/androidannotations
AndroidAnnotations version: 4.5.2 Android compile SDK version: 1.8 Android SDK Build-Tools: 28.0.3 com.android.tools.build:gradle:3.3.0 Android Studio: 3.3 Gradle using gradlew: 4.10.1 it work fine...
github.com
app 폴더 밑에 있는 build.gradle 에 다음 코드를 추가하자
android {
defaultConfig {
// 여기 코드를 추가한다.
javaCompileOptions {
annotationProcessorOptions {
arguments = [
"androidManifestFile": "$projectDir/src/main/AndroidManifest.xml".toString()
]
}
}
}
}
안드로이드 스튜디오는 항상 업그레이드하면 문제가 생기는거 같다 -_-;;;; 쩝