Flutter 腾讯直播应用在发布模式下崩溃了

问题描述 投票:0回答:1

我使用腾讯云和 live_flutter_plugin 包构建了一个直播应用程序。它在调试模式下工作正常,在发布模式下应用程序崩溃了。我尝试了不同的方法但找不到解决方案。

  void init() async {
    await [Permission.microphone, Permission.camera].request();

    await V2TXLivePremier.setLicence(Constant.licenseURL, Constant.licenseKey);

    _livePusher = await V2TXLivePusher.create(V2TXLiveMode.v2TXLiveModeRTMP);

    _livePusher?.addListener(onPusherObserver);
  }

当执行 V2TXLivePremier.setLicence() 函数时,应用程序在发布模式下关闭并出现类似

ERR :: JNI DETECTED ERROR IN APPLICATION: java_class == null

的错误

有人可以帮我解决这个问题吗?

flutter dart tencent tencent-cloud
1个回答
0
投票

您好,请问您的插件版本可以吗? 详细的崩溃日志和设备系统很高兴拥有。 我是腾讯云的支持者

© www.soinside.com 2019 - 2024. All rights reserved.