解决Compose Runtime internal error. Unexpected or incorrect use of the Compose internal runtime API (M
Posted 安果移不动
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决Compose Runtime internal error. Unexpected or incorrect use of the Compose internal runtime API (M相关的知识,希望对你有一定的参考价值。
java.lang.IllegalStateException: Compose Runtime internal error. Unexpected or incorrect use of the Compose internal runtime API (Missed recording an endGroup). Please report to Google or use https://goo.gle/compose-feedback
at androidx.compose.runtime.ComposerKt.composeRuntimeError(Composer.kt:4110)
at androidx.compose.runtime.ComposerImpl.recordEndGroup(Composer.kt:4246)
at androidx.compose.runtime.ComposerImpl.end(Composer.kt:2218)
at androidx.compose.runtime.ComposerImpl.endGroup(Composer.kt:1443)
at androidx.compose.runtime.ComposerImpl.endRoot(Composer.kt:1334)
at androidx.compose.runtime.ComposerImpl.doCompose(Composer.kt:3076)
at androidx.compose.runtime.ComposerImpl.recompose$runtime_release(Composer.kt:3017)
at androidx.compose.runtime.CompositionImpl.recompose(Composition.kt:722)
at androidx.compose.runtime.Recomposer.performRecompose(Recomposer.kt:876)
at androidx.compose.runtime.Recomposer.access$performRecompose(Recomposer.kt:107)
at androidx.compose.runtime.Recomposer$runRecomposeAndApplyChanges$2$2.invoke(Recomposer.kt:485)
at androidx.compose.runtime.Recomposer$runRecomposeAndApplyChanges$2$2.invoke(Recomposer.kt:454)
at androidx.compose.ui.platform.AndroidUiFrameClock$withFrameNanos$2$callback$1.doFrame(AndroidUiFrameClock.android.kt:34)
at androidx.compose.ui.platform.AndroidUiDispatcher.performFrameDispatch(AndroidUiDispatcher.android.kt:109)
at androidx.compose.ui.platform.AndroidUiDispatcher.access$performFrameDispatch(AndroidUiDispatcher.android.kt:41)
at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.doFrame(AndroidUiDispatcher.android.kt:69)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1216)
at android.view.Choreographer.doCallbacks(Choreographer.java:972)
at android.view.ChoreographerExtImpl.checkScrollOptSceneEnable(ChoreographerExtImpl.java:319)
at android.view.Choreographer.doFrame(Choreographer.java:859)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1203)
at android.os.Handler.handleCallback(Handler.java:938)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:233)
at android.os.Looper.loop(Looper.java:344)
at android.app.ActivityThread.main(ActivityThread.java:8204)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:589)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1071)
Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [androidx.compose.runtime.PausableMonotonicFrameClock@ef48b2f, androidx.compose.ui.platform.MotionDurationScaleImpl@5e1c53c, StandaloneCoroutineCancelling@3a172c5, AndroidUiDispatcher@614141a]
‘
Flutter 写多了。。直接return组件了。。这在compose是。。报错的,
改为
以上是关于解决Compose Runtime internal error. Unexpected or incorrect use of the Compose internal runtime API (M的主要内容,如果未能解决你的问题,请参考以下文章
Jetpack Compose 深入探索系列三:Compose runtime
Jetpack Compose 深入探索系列六:Compose runtime 高级用例
错误:Compose 文件“./docker-compose.yaml”无效,因为:services.nvidia-smi-test 的配置选项不受支持:“runtime”