没有找到类“androidx.compose.ui.node.Owner” 哨兵

Didn't find class "androidx.compose.ui.node.Owner" Sentry

提问人:ANewbieDeveloper 提问时间:10/26/2023 更新时间:10/26/2023 访问量:58

问:

当我升级 flutter & intl 时,我将 sentry 版本升级到 7.11

问题是现在我的应用程序无法启动,并且出现此错误:

D/Sentry  (23065): Class not available:androidx.compose.ui.node.Owner
D/Sentry  (23065): java.lang.ClassNotFoundException: androidx.compose.ui.node.Owner
D/Sentry  (23065):      at java.lang.Class.classForName(Native Method)
D/Sentry  (23065):      at java.lang.Class.forName(Class.java:536)
D/Sentry  (23065):      at java.lang.Class.forName(Class.java:467)
D/Sentry  (23065):      at io.sentry.android.core.LoadClass.loadClass(LoadClass.java:21)
D/Sentry  (23065):      at io.sentry.android.core.LoadClass.isClassAvailable(LoadClass.java:39)
D/Sentry  (23065):      at io.sentry.android.core.LoadClass.isClassAvailable(LoadClass.java:44)
D/Sentry  (23065):      at io.sentry.android.core.AndroidOptionsInitializer.initializeIntegrationsAndProcessors(AndroidOptionsInitializer.java:147)
D/Sentry  (23065):      at io.sentry.android.core.SentryAndroid.lambda$init$1(SentryAndroid.java:127)
D/Sentry  (23065):      at io.sentry.android.core.SentryAndroid$$ExternalSyntheticLambda0.configure(Unknown Source:8)
D/Sentry  (23065):      at io.sentry.Sentry.applyOptionsConfiguration(Sentry.java:176)
D/Sentry  (23065):      at io.sentry.Sentry.init(Sentry.java:146)
D/Sentry  (23065):      at io.sentry.android.core.SentryAndroid.init(SentryAndroid.java:89)
D/Sentry  (23065):      at io.sentry.android.core.SentryAndroid.init(SentryAndroid.java:70)
D/Sentry  (23065):      at io.sentry.flutter.SentryFlutterPlugin.initNativeSdk(SentryFlutterPlugin.kt:126)
D/Sentry  (23065):      at io.sentry.flutter.SentryFlutterPlugin.onMethodCall(SentryFlutterPlugin.kt:57)
D/Sentry  (23065):      at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)
D/Sentry  (23065):      at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295)
D/Sentry  (23065):      at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322)
D/Sentry  (23065):      at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12)
D/Sentry  (23065):      at android.os.Handler.handleCallback(Handler.java:958)
D/Sentry  (23065):      at android.os.Handler.dispatchMessage(Handler.java:99)
D/Sentry  (23065):      at android.os.Looper.loopOnce(Looper.java:205)
D/Sentry  (23065):      at android.os.Looper.loop(Looper.java:294)
D/Sentry  (23065):      at android.app.ActivityThread.main(ActivityThread.java:8176)
D/Sentry  (23065):      at java.lang.reflect.Method.invoke(Native Method)
D/Sentry  (23065):      at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
D/Sentry  (23065):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
D/Sentry  (23065): Caused by: java.lang.ClassNotFoundException: Didn't find class "androidx.compose.ui.node.Owner" on path: DexPathList

有人遇到过这个错误或知道发生了什么吗?

Flutter 飞镖 android-jetpack-compose 哨兵

评论

1赞 Bruno Garcia 10/27/2023
听起来像是 SDK 中的错误。我向 SDK 团队开了一张票证:github.com/getsentry/sentry-dart/issues/1704 他们需要更多信息,例如:您之前使用的是什么版本?Flutter 和 Sentry 的版本,在升级之前和之后,就是这样。您正在测试的设备型号/版本也很有帮助。
0赞 ANewbieDeveloper 10/27/2023
该应用程序实际上没有崩溃,崩溃是由于其他原因造成的,但非常感谢您的支持!这可能只是一个错误,哨兵似乎工作正常,应用程序不受影响

答: 暂无答案