应用在尝试创建视频通话时崩溃



我从github(https://github.com/AgoraIO/Flutter-SDK(上的Agora IO存储库克隆了该项目,然后将其迁移到androidX。迁移还可以,但是当我尝试创建通道时,设备显示此错误:

SM G9600 上的天文台调试器和剖面器可在以下位置获得: http://127.0.0.1:53483/BBz2-lEt86o=/有关更详细的帮助消息, 按"H"。要分离,请按"d";要退出,请按"Q"。E/颤振 (22196): [错误:颤振/外壳/平台/安卓/platform_view_android_jni.cc(39(] java.lang.UnsatisfiedLinkError: 找不到 int 的实现 io.agora.rtc.internal.RtcEngineImpl.nativeLog(int, java.lang.String( (尝试Java_io_agora_rtc_internal_RtcEngineImpl_nativeLog和 Java_io_agora_rtc_internal_RtcEngineImpl_nativeLog__ILjava_lang_String_2( E/颤振 (22196(: 在 io.agora.rtc.internal.RtcEngineImpl.nativeLog(Native Method( E/flutter (22196(: at io.agora.rtc.internal.Logging.log(Logging.java:25( E/颤振 (22196(: 在 io.agora.rtc.internal.Logging.i(Logging.java:49( E/flutter (22196(:
at io.agora.rtc.internal.RtcEngineImpl.checkIfInUIThread(RtcEngineImpl.java:155( E/颤振 (22196(: 在 io.agora.rtc.RtcEngine.CreateRendererView(RtcEngine.java:881( E/颤振 (22196(: 在 io.agora.agorartcengine.AgoraRenderViewFactory.create(AgoraRenderViewFactory.java:23( E/颤振 (22196(: 在 io.flutter.plugin.platform.SingleViewPresentation.onCreate(SingleViewPresentation.java:174( E/颤振 (22196(: 在 android.app.Dialog.dispatchOnCreate(Dialog.java:550( E/flutter (22196(: at android.app.Dialog.show(Dialog.java:391( E/flutter (22196(: at android.app.Presentation.show(Presentation.java:267( E/颤振 (22196(: 在 io.flutter.plugin.platform.VirtualDisplayController.(虚拟显示控制器.java:93( E/颤振 (22196(: 在 io.flutter.plugin.platform.VirtualDisplayController.create(VirtualDisplayController.java:53( E/颤振 (22196(: 在 io.flutter.plugin.platform.PlatformViewsController$1.createPlatformView(PlatformViewsController.java:105( E/颤振 (22196(: 在 io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.create(PlatformViewsChannel.java:96( E/颤振 (22196(: 在 io.flutter.embedding.engine.systemchannels.PlatformViewsChannel$1.onMethodCall(PlatformViewsChannel.java:60( E/颤振 (22196(: 在 io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:231( E/颤振 (22196(: 在 io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:93( E/颤振 (22196(: 在 io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:642( E/颤振 (22196(: 在 android.os.MessageQueue.nativePollOnce(Native Method( E/flutter (22196(: at android.os.MessageQueue.next(MessageQueue.java:326( E/flutter (22196(: at android.os.Looper.loop(Looper.java:181( E/颤振 (22196(: 在 android.app.ActivityThread.main(ActivityThread.java:6990( E/flutter (22196(: at java.lang.reflect.Method.invoke(Native Method( E/颤振 (22196(: 在 com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494( E/颤振 (22196(: 在 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1445( E/颤振 (22196(: F/颤振 (22196(: [致命:颤振/外壳/平台/安卓/platform_view_android_jni.cc(76(] 检查失败:检查异常(env(。与设备的连接丢失。

Soemtimes它失去了连接,但构建发生了,但是之后"创建"的视频通话仅显示黑屏。不知道该怎么办了...

以下可能是黑屏的原因:

  1. 您没有为网络摄像头和麦克风添加权限处理程序
  2. 如果您使用的是模拟器,请确保已在设置中定义了它需要使用的相机。
  3. 请确保发布流。

您可以参考此处给出的示例代码:https://github.com/AgoraIO-Community/Agora-Flutter-Quickstart

您可能没有麦克风和/或摄像头的权限。

相关内容

  • 没有找到相关文章

最新更新