Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lateinit property mainService has not been initialized #16

Open
q735510971 opened this issue Jun 12, 2024 · 0 comments
Open

lateinit property mainService has not been initialized #16

q735510971 opened this issue Jun 12, 2024 · 0 comments

Comments

@q735510971
Copy link

Process: com.sum.tea, PID: 15209
kotlin.UninitializedPropertyAccessException: lateinit property mainService has not been initialized
at com.sum.common.provider.MainServiceProvider.getMainService(MainServiceProvider.kt:18)
at com.sum.common.provider.MainServiceProvider.toMain(MainServiceProvider.kt:30)
at com.sum.common.provider.MainServiceProvider.toMain$default(MainServiceProvider.kt:29)
at com.sum.main.ui.SplashActivity$initView$3.invoke(SplashActivity.kt:29)
at com.sum.main.ui.SplashActivity$initView$3.invoke(SplashActivity.kt:26)
at com.sum.framework.ext.FlowExtKt$countDownCoroutines$3.invokeSuspend(FlowExt.kt:33)
at com.sum.framework.ext.FlowExtKt$countDownCoroutines$3.invoke(Unknown Source:9)
at com.sum.framework.ext.FlowExtKt$countDownCoroutines$3.invoke(Unknown Source:6)
at kotlinx.coroutines.flow.FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1.collect(SafeCollector.common.kt:128)
at kotlinx.coroutines.flow.FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1$1.invokeSuspend(Unknown Source:15)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTask.kt:234)
at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:166)
at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:397)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(CancellableContinuationImpl.kt:431)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$default(CancellableContinuationImpl.kt:420)
at kotlinx.coroutines.CancellableContinuationImpl.resumeUndispatched(CancellableContinuationImpl.kt:518)
at kotlinx.coroutines.android.HandlerContext$scheduleResumeAfterDelay$$inlined$Runnable$1.run(Runnable.kt:19)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:8061)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:703)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@8340837, Dispatchers.Main.immediate]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant