Android Sdk Error in release build

Description
I was trying to integrate Zoom SDK in my android application, and I was able to join meeting successfully. But the real problem I was faced when I took my release build, Application crashing when I am trying to initialize the application.
The log is below
Throwing new exception ‘no non-static method “Lcom/zipow/videobox/ptapp/PTUI;.sinkIMReceived([B)V”’ with unexpected pending exception: java.lang.NoSuchMethodError: no non-static method “Lcom/zipow/videobox/ptapp/PTUI;.dispatchPTAppEvent(IJ)V” 2020-07-05 05:06:00.252 2992-2992/? A/edumia.futurin: thread.cc:2172] at void com.zipow.videobox.ptapp.PTUI.nativeInit() ((null):-2)
2020-07-05 05:06:00.252 2992-2992/? A/edumia.futurin: thread.cc:2172] at void com.zipow.videobox.ptapp.PTUI.initialize() ((null):-1)
2020-07-05 05:06:00.252 2992-2992/? A/edumia.futurin: thread.cc:2172] at void com.zipow.videobox.mainboard.Mainboard.initialize(java.lang.String, boolean, int) ((null):-1)
2020-07-05 05:06:00.252 2992-2992/? A/edumia.futurin: thread.cc:2172] at void com.zipow.videobox.VideoBoxApplication.initSDKMainboard(boolean, int, int) ((null):-1)
2020-07-05 05:06:00.252 2992-2992/? A/edumia.futurin: thread.cc:2172] at void com.zipow.videobox.VideoBoxApplication.initAppForSDK(boolean, int, int) ((null):-1)
2020-07-05 05:06:00.252 2992-2992/? A/edumia.futurin: thread.cc:2172] at void com.zipow.videobox.VideoBoxApplication.onSDKCreated(boolean, int, int) ((null):-1)
2020-07-05 05:06:00.252 2992-2992/? A/edumia.futurin: thread.cc:2172] at void com.zipow.videobox.VideoBoxApplication.initializeForSDK(android.content.Context, boolean, int, int) ((null):-1)
2020-07-05 05:06:00.252 2992-2992/? A/edumia.futurin: thread.cc:2172] at void us.zoom.sdk.ZoomSDK.initialize(android.content.Context, us.zoom.sdk.ZoomSDKInitializeListener, us.zoom.sdk.ZoomSDKInitParams) ((null):-1)

Hi @fawazcec,

Thanks for using Zoom SDK. Which SDK version are you using that gets this issue? Could you share the code snippet of how you initialize the SDK?

Thanks!

Hi @carson.zoom
SDK version which i am using is v5.0.24437.0708

Initialization steps for zoom sdk are follows

In My Activity
InitAuthSDKHelper.getInstance().initSDK(this@MeetingsActivity, this@MeetingsActivity)
In InitAuthSDKHelper class
public void initSDK(Context context, InitAuthSDKCallback callback, String token) {
if (!mZoomSDK.isInitialized()) {
mInitAuthSDKCallback = callback;
ZoomSDKInitParams initParams = new ZoomSDKInitParams();
initParams.appKey=SDK_KEY;
initParams.appSecret=SDK_SECRET;
initParams.enableLog = true;
initParams.logSize = 50;
initParams.domain=AuthConstants.WEB_DOMAIN;
initParams.videoRawDataMemoryMode = ZoomSDKRawDataMemoryMode.ZoomSDKRawDataMemoryModeStack;
mZoomSDK.initialize(context, this, initParams);
}

Importance… >>>>>>>
I was able to to initialize SDK successfully and joined in meeting in debug build .
The problem which i am facing is in release build…
Do I need to follow any steps prior to make release build…
In appmarket place my sdk app is showing like this “Intent to publish: No”

Hi @fawazcec,

Thanks for the reply. The code snippet looks good to me. How do you configure to make the release build? Are you using any code obfuscation?

The “Intent to publish” does not apply to SDK apps to it won’t affect the SDK usage.

I am getting an error while generating release APK. can the team please check what exactly the issues and How I can solve them. in terms of functionality, it works fine but I am not able to generate a build.

Hi @urnish,

Thanks for the reply. Are you using proguard? If so, please try to include the proguard rule from the SDK package.

Thanks!

Hi

I am also facing the same issue can you please help me out.

Thanks

Hi @sarbjyot.singh, thanks for using our SDK.

Have you tried including the proguard rules Carson mentioned in his response?

Thanks!