AndroidX
-
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'
-
After migrating to AndroidX, Error inflating class android.support.design.widget.AppBarLayoutAndroid 2020. 6. 14. 02:13
AppBarLayout add below 'material:1:1:0' in build.gradle (Module: app) implementation 'com.google.android.material:material:1.1.0' in layout.xml AppBarLayout -> com.google.android.material.appbar.AppBarLayout coordinatorlayout implementation 'androidx.coordinatorlayout:coordinatorlayout:1.1.0' constraint:constraint implementation 'com.android.support.constraint:constraint-layout:1.1.3'