Crash when trying to initialize Zoom SDK

Hi, I get this error when I try to initialize the SDK:

java.lang.NoClassDefFoundError: us.zoom.androidlib.app.ZMActivity
at com.zipow.videobox.util.AppStateMonitor.start(AppStateMonitor.java:117)
at com.zipow.videobox.mainboard.Mainboard.startToListenActiveState(Mainboard.java:914)
at com.zipow.videobox.mainboard.Mainboard.initialize(Mainboard.java:257)
at com.zipow.videobox.VideoBoxApplication.initSDKMainboard(VideoBoxApplication.java:545)
at com.zipow.videobox.VideoBoxApplication.initAppForSDK(VideoBoxApplication.java:390)
at com.zipow.videobox.VideoBoxApplication.onSDKCreated(VideoBoxApplication.java:287)
at com.zipow.videobox.VideoBoxApplication.initializeForSDK(VideoBoxApplication.java:200)
at us.zoom.sdk.ZoomSDK.initialize(ZoomSDK.java:342)
at us.zoom.sdk.ZoomSDK.initialize(ZoomSDK.java:299)
at us.zoom.sdk.ZoomSDK.initialize(ZoomSDK.java:252)
at com.shoeeb.learnenglish.meetingActivity.onCreate(meetingActivity.java:36)
at android.app.Activity.performCreate(Activity.java:6444)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1116)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2585)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2720)
at android.app.ActivityThread.access$900(ActivityThread.java:196)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1538)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:210)
at android.app.ActivityThread.main(ActivityThread.java:5982)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:852)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742).

This is the app Gradle settings:
apply plugin: ‘com.android.application’

android {
compileSdkVersion 28
defaultConfig {
applicationId “com.shoeeb.learnenglish”
minSdkVersion 17
targetSdkVersion 28
versionCode 1
versionName “1.0”
//testInstrumentationRunner “android.support.test.runner.AndroidJUnitRunner”
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’
}
}
buildToolsVersion ‘28.0.3’
}

dependencies {
implementation fileTree(include: [’*.jar’], dir: ‘libs’)
implementation ‘com.android.support:appcompat-v7:28.0.0’
implementation ‘com.android.support.constraint:constraint-layout:1.1.3’
implementation ‘com.android.support:design:28.0.0’
implementation ‘com.android.support:cardview-v7:28.0.0’
testImplementation ‘junit:junit:4.12’
// androidTestImplementation ‘com.android.support.test:runner:1.0.2’
//androidTestImplementation ‘com.android.support.test.espresso:espresso-core:3.0.2’
implementation ‘com.google.firebase:firebase-database:17.0.0’
implementation ‘com.google.firebase:firebase-auth:17.0.0’
implementation ‘com.android.support:recyclerview-v7:28.0.0’
implementation ‘com.github.bumptech.glide:glide:4.9.0’
implementation project(’:commonlib’)
implementation project(’:mobilertc’)

}
apply plugin: ‘com.google.gms.google-services’ // Google Play services Gradle plugin

Any help would be appreciated.

Hi as.motion.inc,

Thanks for using Zoom SDK. May I inquire the following information:

  1. Which SDK version are you using? (Version info can be found here:https://github.com/zoom/zoom-sdk-android/releases)
  2. Could you help to verify if the Zoom SDK has been correctly imported and integrated? You may follow the instruction here:https://marketplace.zoom.us/docs/sdk/native-sdks/android/getting-started/integration
  3. Is this error happening on real device or on emulator? Which device is having this issue with? Is this error only shown on that device or on multiple devices as well?
  4. Based on the device architecture that you are having issues with (for example: armabi-v7a, or x86), can you add the following abiFilter to the defaultConfig section in your gradle file and see if that helps:
ndk {
            abiFilters "armeabi-v7a", "x86"
        }
  1. If adding the abiFilter does not help, can you provide the full SDK log (Steps to enable and retrieve SDK log:https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/sdk-initialization#2-log-feature), and can you provide the steps to reproduce this issue?

Hope this helps. Thanks!

Hi Carson_Chen,
Thank you for your reply.

  1. This is the version that I use:
    4.4.55130.0712

  2. I followed the instructions in this link:
    https://marketplace.zoom.us/docs/sdk/native-sdks/android/getting-started/integration.

  3. I get this error on my real devices.

  4. I’ve added the abiFilter to the defaultConfig but I get the same error.

  5. This is the log file:
    https://drive.google.com/open?id=1FMT1ltO7uQWhKuQqO3erTehWnoZc1xBZ

Hi,

Thanks for the prompt reply. It seems like the log file has been encrypted, could you provide some guidance on how to decode this file? And could you also provide the device info that you are getting error with(the CPU arch, Android version, etc.)?

Thanks!

I don’t know how to decode this log file.
This is my device info:
CPU Arch: armv8l
Android version: 6.0

Hi,

Thanks for the information. The CPU arch you mentioned is not in the list of the arch that we are supporting at this point. That’s the reason why you are facing this crash.

Our Android SDK supports the following CPU arch: armeabi-v7a, armeabi, arm64-v8a, x86, x86_64

I will pass the support for armv8l as a feature request to our engineering team and we will investigate the possibility of supporting it in the future.

Hope this helps. Thanks!