Crash While adding ShareView (addShareVideoUnit)

java.lang.NoSuchMethodError: No virtual method setMargins(IIII)V in class Landroidx/constraintlayout/widget/ConstraintLayout$LayoutParams; or its super classes (declaration of ‘androidx.constraintlayout.widget.ConstraintLayout$LayoutParams’ appears in /data/app/~~sT0A7dVF5ifWXSTrf9gRsA==/com.package.package.debug–vlQqSqaUhlQAMrZEMFnxQ==/base.apk)
at com.zipow.annotate.AnnoInputView.updateAnnotateWndSize(
at com.zipow.annotate.AnnoViewMgr$
at android.os.Handler.handleCallback(
at android.os.Handler.dispatchMessage(
at android.os.Looper.loop(
at java.lang.reflect.Method.invoke(Native Method)

Which Android Meeting SDK version?

To Reproduce(If applicable)
I’m adding shareVideoUnit while someone share a view,

        defaultVideoManager = videoView.binding.videoContentView.videoViewManager

                    defaultVideoManager.addShareVideoUnit(userShareId, shareRenderInfo)

fragmentInMeetingMainFrame is a FrameLayout inside a ConstraintLayout, while the videoView is MobileRTCVideoView inside a FrameLayout

It works fine in the case of addAttendeeVideoUnit, there is something wrong with addShareVideoUnit

It works well with the sample app included in the sdk, can’t really figure out what I’m doing wrong, please let me know if there is a certain view hierarchy to follow or a specific (other) type of view is to be incorporated.

This happened when I updated the zoom SDK from 5.5 to 5.7 the latest version.

For anyone out there: I fixed it by updating the dependency versions specifically ConstraintLayout in the build.gradle of mobilertc

That’s great to hear you were able to resolve this!

Please don’t hesitate to reach back out with any additional questions. :slightly_smiling_face:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.