android-zoom-meeting-sdk-crash-after-upgrade-to-v5.16.1.16439

We created the SDK type of app.

  1. We are using Android’s latest SDK version (v5.16.1.16439).

  2. As per the below screenshot taken from “Meeting SDK Auth” url we are using SDK Key and SDK Secret to create the token which is authenticating successfully.

4. We are facing an issue when we are joining the meeting.

java.lang.NoSuchMethodError: No static method getOrCreate(Landroid/content/Context;)Landroidx/window/layout/WindowInfoTracker; in class Landroidx/window/layout/WindowInfoTracker; or its super classes (declaration of ‘androidx.window.layout.WindowInfoTracker’ appears in /data/app/~~KPj8CgAM8Ux1oVKQDykzGw==/com.nrichlearning.dummyapp-tIB9Hbh8XSI3BV-Wbwne4Q==/base.apk)

The detailed stack trace is attached to the ticket.

  1. Android Zoom meeting SDK crash after upgrade to 5.15.5.15204 - #9 by gianni.zoom as per your suggested we have already visited the forum which suggested that this problem is only happening on an emulator not on the physical device but the problem is happening on the device as well.
1 Like

Hi @nrichlearning ,

It’s not attached, but I will private message you. Please send there.

Please also do the following in the message:

I have same issue with new update

Hi @gianni.zoom

Here is the gradlew dependencies result

./gradlew app:dependencies --configuration implementation

Configure project :app
WARNING:Using flatDir should be avoided because it doesn’t support any meta-data formats.

Task :app:dependencies


Project ‘:app’

implementation - Implementation only dependencies for ‘main’ sources. (n)
±-- androidx.security:security-crypto:1.1.0-alpha05 (n)
±-- com.google.crypto.tink:tink-android:1.7.0 (n)
±-- com.google.android.exoplayer:exoplayer-core:2.17.1 (n)
±-- com.google.android.exoplayer:exoplayer-ui:2.17.1 (n)
±-- androidx.swiperefreshlayout:swiperefreshlayout:1.1.0 (n)
±-- androidx.appcompat:appcompat:1.3.1 (n)
±-- androidx.constraintlayout:constraintlayout:2.1.0 (n)
±-- com.google.android.material:material:1.8.0 (n)
±-- com.google.android:flexbox:2.0.1 (n)
±-- androidx.multidex:multidex:2.0.1 (n)
±-- com.google.code.gson:gson:2.9.1 (n)
±-- com.github.bumptech.glide:annotations:4.11.0 (n)
±-- com.github.bumptech.glide:glide:4.11.0 (n)
±-- org.greenrobot:eventbus:3.1.1 (n)
±-- androidx.recyclerview:recyclerview:1.2.1 (n)
±-- com.airbnb.android:lottie:4.0.0 (n)
±-- androidx.window:window:1.0.0 (n)
±-- androidx.window:window-java:1.0.0 (n)
±-- org.jetbrains.kotlin:kotlin-stdlib:1.8.20 (n)
±-- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20 (n)
±-- org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2 (n)
±-- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2 (n)
±-- androidx.core:core-ktx:1.8.0 (n)
±-- androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1 (n)
±-- androidx.lifecycle:lifecycle-runtime-ktx:2.6.1 (n)
±-- androidx.fragment:fragment-ktx:1.4.1 (n)
±-- io.reactivex.rxjava2:rxandroid:2.1.1 (n)
-– com.davemorrissey.labs:subsampling-scale-image-view:3.10.0 (n)

(n) - Not resolved (configuration is not meant to be resolved)

A web-based, searchable dependency report is available by adding the --scan option.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.

You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

@nrichlearning we are looking into this (ZSEE-107311).

@qing.peng here’s another one! Same behavior described Android Zoom meeting SDK crash after upgrade to 5.15.5.15204 - #12 by dmitryukhanov

Hi @nrichlearning , thanks for sharing us the dependencies result. We see some users report there is a bug in Android Studio code caching. So can you please try to run Files-Invalidate caches, and then run Build → Rebuild Project on Android Studio?

1 Like

Hi @qing.peng
I tried your solution but still getting the same error

I/arning.dummyapp( 8680): Background concurrent copying GC freed 34846(2923KB) AllocSpace objects, 5(100KB) LOS objects, 49% free, 7762KB/15MB, paused 1.139ms,31us total 147.116ms
I/arning.dummyapp( 8680): Compiler allocated 4160KB to compile void android.widget.TextView.(android.content.Context, android.util.AttributeSet, int, int)
I/arning.dummyapp( 8680): Compiler allocated 4160KB to compile void android.widget.TextView.(android.content.Context, android.util.AttributeSet, int, int)
D/AndroidRuntime( 8680): Shutting down VM
E/AndroidRuntime( 8680): FATAL EXCEPTION: main
E/AndroidRuntime( 8680): Process: com.nrichlearning.dummyapp, PID: 8680
E/AndroidRuntime( 8680): java.lang.NoSuchMethodError: No static method getOrCreate(Landroid/content/Context;)Landroidx/window/layout/WindowInfoTracker; in class Landroidx/window/layout/WindowInfoTracker; or its super classes (declaration of ‘androidx.window.layout.WindowInfoTracker’ appears in /data/app/~~AR9oCxRNo-nN6_0-jHNH0g==/com.nrichlearning.dummyapp-HfqANytwLS75J5TfM-_SVg==/base.apk)
E/AndroidRuntime( 8680): at com.zipow.videobox.conference.ui.ZmConfActivity.onCreate(ZmConfActivity.java:34)
E/AndroidRuntime( 8680): at android.app.Activity.performCreate(Activity.java:8290)
E/AndroidRuntime( 8680): at android.app.Activity.performCreate(Activity.java:8269)
E/AndroidRuntime( 8680): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1384)
E/AndroidRuntime( 8680): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3657)
E/AndroidRuntime( 8680): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3813)
E/AndroidRuntime( 8680): at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101)
E/AndroidRuntime( 8680): at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
E/AndroidRuntime( 8680): at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
E/AndroidRuntime( 8680): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2308)
E/AndroidRuntime( 8680): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime( 8680): at android.os.Looper.loopOnce(Looper.java:201)
E/AndroidRuntime( 8680): at android.os.Looper.loop(Looper.java:288)
E/AndroidRuntime( 8680): at android.app.ActivityThread.main(ActivityThread.java:7898)
E/AndroidRuntime( 8680): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime( 8680): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/AndroidRuntime( 8680): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
I/Process ( 8680): Sending signal. PID: 8680 SIG: 9
Lost connection to device.

Hi @nrichlearning , it appears all the dependencies match, however can you please DM these two files so we can double check?

Hi @gianni.zoom

mobilertc → build.gradle

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

dependencies.add(“default”,“androidx.security:security-crypto:1.1.0-alpha05”)
dependencies.add(“default”,“com.google.crypto.tink:tink-android:1.7.0”)
dependencies.add(“default”,“com.google.android.exoplayer:exoplayer-core:2.17.1”)
dependencies.add(“default”,“com.google.android.exoplayer:exoplayer-ui:2.17.1”)
dependencies.add(“default”,“androidx.swiperefreshlayout:swiperefreshlayout:1.1.0”)

dependencies.add(“default”,“androidx.appcompat:appcompat:1.3.1”)
dependencies.add(“default”,“androidx.constraintlayout:constraintlayout:2.1.0”)
dependencies.add(“default”,“com.google.android.material:material:1.8.0”)
dependencies.add(“default”,“com.google.android:flexbox:2.0.1”)
dependencies.add(“default”,“androidx.multidex:multidex:2.0.1”)
dependencies.add(“default”,“com.google.code.gson:gson:2.9.1”)
dependencies.add(“default”,“com.github.bumptech.glide:annotations:4.11.0”)
dependencies.add(“default”,“com.github.bumptech.glide:glide:4.11.0”)
dependencies.add(“default”,“org.greenrobot:eventbus:3.1.1”)

dependencies.add(“default”,“androidx.recyclerview:recyclerview:1.2.1”)
dependencies.add(“default”,“com.airbnb.android:lottie:4.0.0”)

dependencies.add(“default”,“androidx.window:window:1.0.0”)

dependencies.add(“default”,“androidx.window:window-java:1.0.0”)

dependencies.add(“default”,“org.jetbrains.kotlin:kotlin-stdlib:1.8.20”)
dependencies.add(“default”,“org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.20”)

dependencies.add(“default”,“org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2”)
dependencies.add(“default”,“org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2”)
dependencies.add(“default”,“androidx.core:core-ktx:1.8.0”)
dependencies.add(“default”,“androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.1”)
dependencies.add(“default”,“androidx.lifecycle:lifecycle-runtime-ktx:2.6.1”)

dependencies.add(“default”,“androidx.fragment:fragment-ktx:1.4.1”)
dependencies.add(“default”,“io.reactivex.rxjava2:rxandroid:2.1.1”)
dependencies.add(“default”,“org.greenrobot:eventbus:3.1.1”)
dependencies.add(“default”,“com.davemorrissey.labs:subsampling-scale-image-view:3.10.0”)

sample → build.gradle

apply plugin: ‘com.android.application’

android {
compileSdkVersion = 33
buildToolsVersion = “30.0.3”

viewBinding {
    enabled = true
}

defaultConfig {
    applicationId "us.zoom.sdkexample"
    minSdkVersion 23
    targetSdkVersion 33
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
    vectorDrawables.useSupportLibrary = true

// ndk {
// abiFilters “arm64-v8a”
// }
}

buildTypes {
    release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg'
    }

    debug {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg'
    }

}

lintOptions {
    checkReleaseBuilds false
    abortOnError false
}
compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

}

dependencies {
implementation project(‘:commonlib’)
implementation project(‘:mobilertc’)

}

configurations.all {
resolutionStrategy {
force “org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2”
force “org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2”
}
}

Hi @gianni.zoom
I am also got same errors, Changed the things which are mentioned by the @nrichlearning
Using same version : 5.16.1

If you can allow I can share my logs, your help really appreciated.

Hi @er.umeshjangid , just messaged you!

Any solutions on this issue ? @gianni.zoom

Hi @er.umeshjangid ,

I messaged you for your APK logs and you have not sent yet.

What we have seen though in certain instances is that the the apk contains the correct version of dependencies, but there is some issue when packaging androidx .window, it might be the issue of gradle version. Can you please also provide the version of gradle, gradle plugin, and code language version when you respond?

Apologies from my end because I confused about this dev forum tool where to send the details apk or keys, I was avoid to post publicly my keys.

Version of gradle: 7.5
Gradle Plugin(AGP) : 7.1.2
Code Language with Version : Kotlin (1.7.10)

Hi @er.umeshjangid , you should see a notification of my private message to you where you can share requested info.

Click on your profile picture and navigate to an icon that looks like a letter. Hope that helps.

@nrichlearning is this the plug in version you have?

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