推流的时候加上 addLiveErrorStatusListener 会报这个错 java.lang.NoClas...

Completed

Comments

6 comments

  • DJI Developer Support
    1. 你的MSDK是否是最新呢? 2. 可这个问题好像是找不到OnLiveErrorStatusListener这个class,你的程序会崩溃嘛? 3. addLiveErrorStatusListener是否会起作用? 4. 跑Sample是否会复现?
    0
    Comment actions Permalink
  • Yy

    1、4.16  2、会崩溃 3、不起作用,还没走到addLiveErrorStatusListener,当new LiveStreamManager.OnLiveChangeListener(new LiveStreamManager.OnLiveErrorStatusListener也一样)就会崩溃 4 sample不会复现

    另外没有开混淆

    app连接到飞机之后,只要new 那两个监听 就会崩溃,找不到对应的class

     

    0
    Comment actions Permalink
  • Yy

    0
    Comment actions Permalink
  • Yy

    补充下:报错那个地方是 DJI 的helper.install();

    只要new 那两个监听就会从这个地方抛出异常。

    0
    Comment actions Permalink
  • Yy

    问题找到了,很奇怪,在连接无人机之后,在当前类new这个对象就没问题,但是如果加一层回调,回调到另一个类,在另一个类里面去new 就不行。这个监听类 是不是动态创建的?跟这个有关么

    0
    Comment actions Permalink
  • DJI Developer Support
    如果只是回调在另一个类里new LiveStreamManager.OnLiveErrorStatusListener,我这边是正常运行的。我是在addTextChangedListener的TextWatcher是new了回调对象,程序是正常运行的。 方便给把你的代码上传到链接给我吗?Link:https://pan-sec.djicorp.com/s/Qq5WH8Nr7Wa7HFL password:dji123
    0
    Comment actions Permalink

Please sign in to leave a comment.