Zoom sdk initialization problem in zoom-sdk-android-5.4.3.613 version

Description
On sdk initialization app force stop and get “Failed resolution of: Lcom/google/crypto/tink/daead/AesSivKeyManager;” error.

Which version?
zoom-sdk-android-5.4.3.613 version

Hi @kumkumschool, thanks for the post.

Can you please verify that the build.gradle files for the SDK modules match what is there for the sample app?

Thanks!

// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply plugin: ‘com.android.application’
buildscript {
/* configurations.all {
resolutionStrategy {
force ‘net.sf.proguard:proguard-gradle:5.3.3’
}
}*/
repositories {
jcenter()
google()
}
dependencies {
classpath ‘com.android.tools.build:gradle:3.5.1’
classpath ‘com.google.gms:google-services:4.0.1’
}
}

android {
compileSdkVersion 29
buildToolsVersion “29.0.3”
useLibrary ‘org.apache.http.legacy’
defaultConfig {
applicationId ‘com.mac.apps.myschoolperiod’
minSdkVersion 21
targetSdkVersion 29
versionCode 24
versionName ‘3.2’
multiDexEnabled true
vectorDrawables.useSupportLibrary = true
/* ndk {
abiFilters “arm64-v8a”, “x86_64”, “x86”, “mips”, “armeabi”
}/
/
ndk {
abiFilters “arm64-v8a”
}*/

    /* final BUILD_DATE = new Date().format('dd-MM-yyyy HH-mm')
     applicationVariants.all { variant ->
         variant.outputs.each { output ->
             output.outputFileName = "MacClassRoom(" + BUILD_DATE + ") - " + "${variant.name}.apk"
         }
     }*/
}
final BUILD_DATE = new Date().format('dd-MM-yyyy hh-mm aa')
applicationVariants.all { variant ->
    variant.outputs.each { output ->
        output.outputFileName = "Mac Classroom (" + BUILD_DATE + ") - " + "${variant.name}.apk"
    }
}
lintOptions {
    checkReleaseBuilds false
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_7
    targetCompatibility JavaVersion.VERSION_1_7
}
packagingOptions {
    exclude 'META-INF/NOTICE.txt'
    exclude 'META-INF/LICENSE.txt'
    exclude 'META-INF/LICENSE-FIREBASE.txt'
}
aaptOptions {
    cruncherEnabled = false
}
buildTypes {
    debug {
        shrinkResources false
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
    release {
        shrinkResources false
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}

dexOptions {
    jumboMode = true
    javaMaxHeapSize "4g" //specify the heap size for the dex process
    preDexLibraries = false
}
sourceSets {
    main {
        manifest.srcFile 'AndroidManifest.xml'
        java.srcDirs = ['src']
        resources.srcDirs = ['src']
        aidl.srcDirs = ['src']
        renderscript.srcDirs = ['src']
        res.srcDirs = ['res']
        assets.srcDirs = ['assets']
    }
    androidTest.setRoot('tests')
    debug.setRoot('build-types/debug')
    release.setRoot('build-types/release')
}
productFlavors {
}

}

allprojects {
repositories {
jcenter()
google()
maven {
url “https://jitpack.io
}

    maven { url "https://maven.google.com" }
}
/*gradle.projectsEvaluated {
    tasks.withType(JavaCompile) {
        options.compilerArgs << "-Xlint:deprecation"
    }
}*/

}

dependencies {
implementation files(‘libs/paynimo_v3.2_live.jar’)
implementation files(‘libs/picasso-2.3.4.jar’)
implementation files(‘libs/commons-net-2.0-ftp.jar’)
implementation files(‘libs/simpleftp.jar’)
implementation files(‘libs/xercesImpl-2.6.2-jaxb-1.0.6.jar’)
implementation files(‘libs/ksoap2-android-assembly-2.5.8-jar-with-dependencies.jar’)
implementation ‘com.squareup.retrofit2:retrofit:2.2.0’
implementation ‘com.squareup.retrofit2:converter-gson:2.2.0’
implementation ‘com.squareup.okhttp3:okhttp:3.10.0’
implementation ‘com.squareup.okio:okio:1.14.0’
implementation ‘com.squareup.okhttp3:logging-interceptor:3.6.0’
implementation ‘androidx.appcompat:appcompat:1.1.0’
implementation ‘com.google.android.material:material:1.2.0’
implementation ‘com.google.android:flexbox:2.0.1’
implementation ‘androidx.percentlayout:percentlayout:1.0.0’
implementation ‘androidx.cardview:cardview:1.0.0’
implementation ‘androidx.swiperefreshlayout:swiperefreshlayout:1.0.0’
implementation ‘androidx.multidex:multidex:2.0.1’
//implementation ‘com.google.firebase:firebase-crash:11.6.0’
implementation ‘com.google.firebase:firebase-core:11.6.0’
implementation ‘com.google.firebase:firebase-messaging:17.3.3’
implementation ‘com.google.android.gms:play-services-ads:19.1.0’
//implementation ‘com.google.android.gms:play-services:16.0.0’
implementation ‘com.google.android.gms:play-services-analytics:17.0.0’
implementation ‘com.google.android.gms:play-services-auth:18.0.0’
//implementation ‘com.google.android.gms:play-services-gcm:11.6.0’
implementation ‘com.google.code.gson:gson:2.8.5’
implementation ‘com.github.bumptech.glide:glide:3.8.0’
implementation ‘com.github.florent37:shapeofview:1.3.2’
implementation ‘androidx.constraintlayout:constraintlayout:1.1.3’
implementation ‘at.blogc:expandabletextview:1.0.5’
implementation ‘androidx.vectordrawable:vectordrawable:1.1.0’
implementation ‘androidx.legacy:legacy-support-v4:1.0.0’
implementation ‘de.hdodenhof:circleimageview:2.2.0’
implementation ‘com.thefinestartist:ytpa:1.2.1’
implementation ‘com.google.android.gms:play-services-base:17.2.1’
implementation ‘com.google.android.gms:play-services-auth-api-phone:17.4.0’
implementation ‘com.amazonaws:aws-android-sdk-core:2.9.2’
implementation ‘com.amazonaws:aws-android-sdk-s3:2.9.2’
implementation ‘com.amazonaws:aws-android-sdk-ddb:2.9.2’
implementation ‘com.github.barteksc:android-pdf-viewer:2.8.2’
implementation ‘com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1’
//FAcebook ad
implementation ‘com.facebook.android:audience-network-sdk:6.1.0’
implementation project(path: ‘:commonlib’)
implementation project(path: ‘:mobilertc’)
//Encryption
//implementation ‘com.github.dori871992:CryptoLight:1.1.0’
}
apply plugin: ‘com.google.gms.google-services’

Hi @kumkumschool,

That appears to be the contents of your app’s build.gradle. Please compare the gradle files under the mobilertc and commonlib modules in your project against the same files in the sample app and ensure they contain the same info.

Thanks!

I have check thair is no difference all things are the same and proper.

Hi @kumkumschool,

Can you please provide the contents of your mobilertc and commonlib modules’ gradle files so that I may confirm?

Thanks!

mobilertc:
configurations.maybeCreate(“default”)
artifacts.add(“default”, file(‘mobilertc.aar’))

commonlib:
configurations.maybeCreate(“default”)
artifacts.add(“default”, file(‘commonlib.aar’))

Hi @kumkumschool,

Thanks for providing that. It appears that the mobilertc file is missing some dependencies.

Please try adding the following content to the mobilertc module’s build.gradle file:

configurations.create("default")
artifacts.add("default", file('mobilertc.aar'))

dependencies.add("default","androidx.security:security-crypto:1.1.0-alpha02")
dependencies.add("default","com.google.crypto.tink:tink-android:1.5.0")
dependencies.add("default","androidx.swiperefreshlayout:swiperefreshlayout:1.0.0")

dependencies.add("default","androidx.appcompat:appcompat:1.0.0")
dependencies.add("default","androidx.constraintlayout:constraintlayout:1.1.3")
dependencies.add("default","com.google.android.material:material:1.2.0-alpha02")
dependencies.add("default","com.google.android:flexbox:2.0.1")
dependencies.add("default","androidx.multidex:multidex:2.0.0")

Please let me know if you are still experiencing issues after adding this.

Thanks!

The same issue came after adding above dependencies in the mobilertc module’s build.gradle file

try {
masterKeyAlias = MasterKeys.getOrCreate(MasterKeys.AES256_GCM_SPEC);
return EncryptedSharedPreferences.create(
“secret_shared_prefs”,
masterKeyAlias,
context,
EncryptedSharedPreferences.PrefKeyEncryptionScheme.AES256_SIV,
EncryptedSharedPreferences.PrefValueEncryptionScheme.AES256_GCM
);
} catch (GeneralSecurityException | IOException e) {
e.printStackTrace();
}

Hi @Zeoner, thanks for using the dev forum.

Sorry to hear you are experiencing a crash as well. Can you please provide the full stack trace of the crash you are seeing so that we may better assist?

Thanks!

2021-08-16 10:06:50.853 25554-25554/com.axaonehealth.patientportal.debug E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.axaonehealth.patientportal.debug, PID: 25554
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/crypto/tink/aead/AeadFactory;
at androidx.security.crypto.EncryptedSharedPreferences.create(EncryptedSharedPreferences.java:131)
at com.axaonehealth.patientportal.utility.SingletonSharedPreference.doGetSecureSharedPreference(SingletonSharedPreference.java:57)
at com.axaonehealth.patientportal.utility.SingletonSharedPreference.doGetPolicyNavigationType(SingletonSharedPreference.java:225)
at com.axaonehealth.patientportal.SplashActivity.doMoveNextViaDevTeamFlow(SplashActivity.java:133)
at com.axaonehealth.patientportal.SplashActivity.access$000(SplashActivity.java:33)
at com.axaonehealth.patientportal.SplashActivity$1.run(SplashActivity.java:68)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6923)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:870)
Caused by: java.lang.ClassNotFoundException: Didn’t find class “com.google.crypto.tink.aead.AeadFactory” on path: DexPathList[[zip file “/data/app/com.axaonehealth.patientportal.debug-jfUqXfKA15omVmdnJRmkBA==/base.apk”],nativeLibraryDirectories=[/data/app/com.axaonehealth.patientportal.debug-jfUqXfKA15omVmdnJRmkBA==/lib/arm, /data/app/com.axaonehealth.patientportal.debug-jfUqXfKA15omVmdnJRmkBA==/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at androidx.security.crypto.EncryptedSharedPreferences.create(EncryptedSharedPreferences.java:131)
at com.axaonehealth.patientportal.utility.SingletonSharedPreference.doGetSecureSharedPreference(SingletonSharedPreference.java:57)
at com.axaonehealth.patientportal.utility.SingletonSharedPreference.doGetPolicyNavigationType(SingletonSharedPreference.java:225)
at com.axaonehealth.patientportal.SplashActivity.doMoveNextViaDevTeamFlow(SplashActivity.java:133)
at com.axaonehealth.patientportal.SplashActivity.access$000(SplashActivity.java:33)
at com.axaonehealth.patientportal.SplashActivity$1.run(SplashActivity.java:68)
at android.os.Handler.handleCallback(Handler.java:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6923)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:870)

Hi Jon, Thanks for your support.

I have adopted zoom SDK with our android sources.

Before that, I have been using EncryptedSharedPreferences in-app for security purposes . It is working fine. but I cannot run the app after added zoom SDK in sources because of some errors that came while running the app. I shared the error msg above for your referernce.

Zoom worked without EncryptedSharedPreferences. but I need to apply EncryptedSharedPreferences with zoom SDK. so kindly support and lead me.

Hi @Zeoner,

Apologies, but I am not seeing anything in your code snippet or stack trace related to our SDK. Am I missing something? We can only really help with issues directly related to our Meeting SDK in this forum.

Thanks!

Hi jon,

My team is not facing this issue before add zoom SDK. I donot know that how to resolve issues. You need to check and release android SDK with security stablility.

I mean zoom SDK block the app security stability ?

Hi @Zeoner,

Unfortunately we are unable to assist with this issue as it does not involve our SDK. If you can provide additional information showing the SDK’s involvement in this issue, we would be happy to assist.

Thanks!

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