Closed dogi closed 5 months ago
duplicate issue #2032
Exception java.lang.RuntimeException: Unable to start activity ComponentInfo{io.treehouses.remote/io.treehouses.remote.InitialActivity}: kotlin.UninitializedPropertyAccessException: lateinit property mChatService has not been initialized at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3707) at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3864) at android.app.ActivityThread.handleRelaunchActivityInner (ActivityThread.java:5811) at android.app.ActivityThread.handleRelaunchActivity (ActivityThread.java:5703) at android.app.servertransaction.ActivityRelaunchItem.execute (ActivityRelaunchItem.java:71) at android.app.servertransaction.ActivityTransactionItem.execute (ActivityTransactionItem.java:45) at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:135) at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2253) at android.os.Handler.dispatchMessage (Handler.java:106) at android.os.Looper.loopOnce (Looper.java:201) at android.os.Looper.loop (Looper.java:288) at android.app.ActivityThread.main (ActivityThread.java:7870) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1003) Caused by kotlin.UninitializedPropertyAccessException: lateinit property mChatService has not been initialized at io.treehouses.remote.BaseInitialActivity.getMChatService (BaseInitialActivity.kt:40) at io.treehouses.remote.BaseInitialActivity.getChatService (BaseInitialActivity.kt:54) at io.treehouses.remote.bases.BaseFragment.onAttach (BaseFragment.kt:25) at io.treehouses.remote.ui.home.HomeFragment.onAttach (HomeFragment.kt:309) at androidx.fragment.app.Fragment.performAttach (Fragment.java:3071) at androidx.fragment.app.FragmentStateManager.attach (FragmentStateManager.java:502) at androidx.fragment.app.FragmentStateManager.moveToExpectedState (FragmentStateManager.java:271) at androidx.fragment.app.FragmentStore.moveToExpectedState (FragmentStore.java:122) at androidx.fragment.app.FragmentManager.moveToState (FragmentManager.java:1663) at androidx.fragment.app.FragmentManager.dispatchStateChange (FragmentManager.java:3247) at androidx.fragment.app.FragmentManager.dispatchCreate (FragmentManager.java:3154) at androidx.fragment.app.FragmentController.dispatchCreate (FragmentController.java:252) at androidx.fragment.app.FragmentActivity.onCreate (FragmentActivity.java:219) at io.treehouses.remote.BaseInitialActivity.onCreate (BaseInitialActivity.kt:43) at io.treehouses.remote.InitialActivity.onCreate (InitialActivity.kt:37) at android.app.Activity.performCreate (Activity.java:8074) at android.app.Activity.performCreate (Activity.java:8054) at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1341) at androidx.test.runner.MonitoringInstrumentation.callActivityOnCreate (MonitoringInstrumentation.java:2) at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3688)
last is version 6222 error which is similar to the first error