Error while initialize SDK

Description
app crash Unable to start activity when start this page InitAuthSDKActivity

Error
java.lang.RuntimeException: Unable to start activity ComponentInfo{in.drona.edu/in.drona.edu.activity.zoom.ui.InitAuthSDKActivity}: java.lang.ClassNotFoundException: us.zoom.net.AndroidNetworkLibrary

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3308)

at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3457)

at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)

at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)

at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)

at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2044)

at android.os.Handler.dispatchMessage(Handler.java:107)

at android.os.Looper.loop(Looper.java:223)

at android.app.ActivityThread.main(ActivityThread.java:7562)

at java.lang.reflect.Method.invoke(Native Method)

at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)

at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)

Caused by: java.lang.ClassNotFoundException: us.zoom.net.AndroidNetworkLibrary

at java.lang.Runtime.nativeLoad(Native Method)

at java.lang.Runtime.nativeLoad(Runtime.java:1115)

at java.lang.Runtime.loadLibrary0(Runtime.java:1069)

at java.lang.Runtime.loadLibrary0(Runtime.java:1007)

at java.lang.System.loadLibrary(System.java:1667)

at com.zipow.videobox.mainboard.Mainboard.r(SourceFile:44)

at com.zipow.videobox.mainboard.Mainboard.initialize(SourceFile:6)

at com.zipow.videobox.VideoBoxApplication.initSDKMainboard(SourceFile:7)

at com.zipow.videobox.VideoBoxApplication.A(SourceFile:6)

at com.zipow.videobox.VideoBoxApplication.P(SourceFile:10)

at com.zipow.videobox.VideoBoxApplication.initializeForSDK(SourceFile:4)

at us.zoom.sdk.ZoomSDK.initialize(SourceFile:42)

at in.drona.edu.activity.zoom.initsdk.InitAuthSDKHelper.initSDK(SourceFile:10)

at in.drona.edu.activity.zoom.ui.InitAuthSDKActivity.onCreate(SourceFile:20)

at android.app.Activity.performCreate(Activity.java:7893)

at android.app.Activity.performCreate(Activity.java:7880)

at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)

at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3283)

Which Client Web SDK version?
Knowing the version can help us to identify your issue faster. [e.g. 1.9.0]

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

Screenshots
If applicable, add screenshots to help explain your problem.

Device (please complete the following information):

  • Device: [e.g. iPhone 12]
  • OS: [e.g. iOS 14]
  • Browser: [e.g. Chrome]
  • Browser Version [e.g. 88.0.4324.150 (Official Build) (x86_64)]

Additional context
Add any other context about the problem here.

Hi zhero1100
Thanks for the post. The error code indicates that the JWT token is incorrect. What is the web domain you are using?

To ensure your SDK key & secret are working, besides filling up the SDK key & secret in AuthConstants.java, please change the following in InitAuthSDKHelper.java

            ZoomSDKInitParams initParams = new ZoomSDKInitParams();
//            initParams.jwtToken = SDK_JWTTOKEN;
            initParams.appKey = SDK_KEY;
            initParams.appSecret = SDK_SECRET;

If it works, then it means the key & secret are working, then you may refer to the instruction here: https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/sdk-initialization to complete the JWT token.

You can use either key & secret or JWT token for SDK initialization.

Hope this helps. Thanks!

Hi @zhero1100, thanks for using our SDK (and a big thank you to @agastyainfowebhost for helping! :blue_heart: )

Can you please confirm that you are importing both of the AARs (mobilertc and commonlib) included in the SDK package as well as the required dependencies?

Thanks!

Sir Issue fixed its working fine and we did mistake in proguard after adding proguard code its working fine

Hi @agastyainfowebhost,

Glad to hear it’s working! Please don’t hesitate to reach out in a new thread if you require any additional help.

Thanks!

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