Gradle
-
[Android] Build Type 'release' contains custom BuildConfig fields, but the feature is disabled.Android 2023. 9. 25. 11:09
Build Type 'release' contains custom BuildConfig fields, but the feature is disabled. => AGP 8.0에서 BuildConfig 사용 시 에러 => AGP(Android gradle plugin) 8.0부터 BuildConfig는 기본적으로 비활성화되며 AGP 9.0부터는 사라진다. android { buildFeatures { buildConfig = true } ... } => 앱수준 그래들 설정에서 위와 같이 설정하면 임시로 BuildConfig를 사용 할 수 있다.
-
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListenerAndroid 2020. 6. 20. 16:45
Error message Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener; Only implementaion in gradle file implementation 'androidx.core:core-ktx:1.3.0' Change in gradle file like below implementation 'androidx.core:core:1.3.0' implementation 'androidx.core:core-ktx:1.3.0'