kotlin java.lang.IncompatibleClassChangeError

FATAL EXCEPTION: main
                                                                         Process: com.xxx.mongo, PID: 10867
                                                                         java.lang.IncompatibleClassChangeError: Couldn't find com.xxx.base.CXActivityLifecycleCallbacks.<clinit>[]
                                                                             at libcore.reflect.AnnotationAccess.indexToMethod(AnnotationAccess.java:608)
                                                                             at libcore.reflect.AnnotationAccess.getEnclosingMethodOrConstructor(AnnotationAccess.java:405)
                                                                             at java.lang.Class.isLocalClass(Class.java:1333)
                                                                             at java.lang.Class.getCanonicalName(Class.java:378)
                                                                             at com.xxx.util.CXLogUtil.getClassName(CXLogUtil.kt:267)
                                                                             at com.xxx.util.CXLogUtil.getLocationClassName(CXLogUtil.kt:262)
                                                                             at com.xxx.util.CXLogUtil.isModuleEnable(CXLogUtil.kt:82)
                                                                             at com.xxx.util.CXLogUtil.w(CXLogUtil.kt:170)
                                                                             at com.xxx.util.CXLogUtil.w(CXLogUtil.kt:163)
                                                                             at com.xxx.base.CXActivityLifecycleCallbacks$$special$$inlined$observable$5.afterChange(Delegates.kt:57)
                                                                             at kotlin.properties.ObservableProperty.setValue(ObservableProperty.kt:36)
                                                                             at com.xxx.base.CXActivityLifecycleCallbacks$Companion.setApplicationVisible(CXActivityLifecycleCallbacks.kt)
                                                                             at com.xxx.base.CXActivityLifecycleCallbacks$$special$$inlined$observable$3.afterChange(Delegates.kt:57)
                                                                             at kotlin.properties.ObservableProperty.setValue(ObservableProperty.kt:36)
                                                                             at com.xxx.base.CXActivityLifecycleCallbacks$Companion.setStarted(CXActivityLifecycleCallbacks.kt)
                                                                             at com.xxx.base.CXActivityLifecycleCallbacks$Companion.access$setStarted$p(CXActivityLifecycleCallbacks.kt:45)
                                                                             at com.xxx.base.CXActivityLifecycleCallbacks.onActivityStarted(CXActivityLifecycleCallbacks.kt:36)
                                                                             at com.xxx.base.CXBaseApplication$onCreate$1.onActivityStarted(CXBaseApplication.kt:33)
                                                                             at android.app.Application.dispatchActivityStarted(Application.java:205)
                                                                             at android.app.Activity.onStart(Activity.java:1184)
                                                                             at com.xxx.spruce.app.XActivity.onStart(XActivity.java:28)
                                                                             at com.xxx.mongo.base.MongoActivity.onStart(MongoActivity.java:517)
                                                                             at com.xxx.mongo.module.splash.SplashActivity.onStart(SplashActivity.java:122)
                                                                             at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1241)
                                                                             at android.app.Activity.performStart(Activity.java:6387)
                                                                             at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2414)
                                                                             at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2511)
                                                                             at android.app.ActivityThread.access$900(ActivityThread.java:165)
                                                                             at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1375)
                                                                             at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                             at android.os.Looper.loop(Looper.java:150)
                                                                             at android.app.ActivityThread.main(ActivityThread.java:5621)
                                                                             at java.lang.reflect.Method.invoke(Native Method)
                                                                             at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:794)
                                                                             at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:684)

Nice stacktrace. What’s your question?

1 Like