Android app crash when open app

Description
Upgrade the SDK version to 5.7.6, then app crash when open app

Which Android Meeting SDK version?
5.7.6

Smartphone (please complete the following information):

  • Device: Samsung Note 20
  • OS: Android 11

Error Log

2021-10-05 11:54:25.848 31682-32395/myapplication E/unknown:NativeModuleInitError: Failed to create NativeModule "UIManager"
    java.lang.VerifyError: Verifier rejected class com.brentvatne.exoplayer.ReactExoplayerViewManager: android.view.View com.brentvatne.exoplayer.ReactExoplayerViewManager.createViewInstance(com.facebook.react.uimanager.k0) failed to verify: android.view.View com.brentvatne.exoplayer.ReactExoplayerViewManager.createViewInstance(com.facebook.react.uimanager.k0): [0x4]  can't resolve returned type 'Reference: android.view.View' or 'Unresolved Reference: com.brentvatne.exoplayer.d' (declaration of 'com.brentvatne.exoplayer.ReactExoplayerViewManager' appears in /data/app/~~rOt2TZL6x_Inp8ThFF8s0A==/myapplication-1x117vtYx9KaSP60Rf7Z6g==/base.apk)
        at f.d.a.b.createViewManagers(ReactVideoPackage.java:28)
        at com.facebook.react.q.F(ReactInstanceManager.java:850)
        at com.facebook.react.a.h(CoreModulesPackage.java:190)
        at com.facebook.react.a.c(CoreModulesPackage.java:158)
        at com.facebook.react.y$b.a(TurboReactPackage.java:159)
        at com.facebook.react.y$b.get(TurboReactPackage.java:147)
        at com.facebook.react.bridge.ModuleHolder.create(ModuleHolder.java:191)
        at com.facebook.react.bridge.ModuleHolder.getModule(ModuleHolder.java:156)
        at com.facebook.react.bridge.NativeModuleRegistry.getModule(NativeModuleRegistry.java:149)
        at com.facebook.react.bridge.CatalystInstanceImpl.getNativeModule(CatalystInstanceImpl.java:596)
        at com.facebook.react.bridge.CatalystInstanceImpl.getNativeModule(CatalystInstanceImpl.java:566)
        at com.facebook.react.uimanager.q0.e(UIManagerHelper.java:70)
        at com.facebook.react.uimanager.q0.d(UIManagerHelper.java:38)
        at com.facebook.react.q.t(ReactInstanceManager.java:1136)
        at com.facebook.react.q.g0(ReactInstanceManager.java:1083)
        at com.facebook.react.q.i(ReactInstanceManager.java:131)
        at com.facebook.react.q$e$b.run(ReactInstanceManager.java:1037)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
        at android.os.Looper.loop(Looper.java:246)
        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
        at java.lang.Thread.run(Thread.java:923)
2021-10-05 11:54:25.849 31682-32395/myapplication E/AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
    Process: myapplication, PID: 31682
    java.lang.VerifyError: Verifier rejected class com.brentvatne.exoplayer.ReactExoplayerViewManager: android.view.View com.brentvatne.exoplayer.ReactExoplayerViewManager.createViewInstance(com.facebook.react.uimanager.k0) failed to verify: android.view.View com.brentvatne.exoplayer.ReactExoplayerViewManager.createViewInstance(com.facebook.react.uimanager.k0): [0x4]  can't resolve returned type 'Reference: android.view.View' or 'Unresolved Reference: com.brentvatne.exoplayer.d' (declaration of 'com.brentvatne.exoplayer.ReactExoplayerViewManager' appears in /data/app/~~rOt2TZL6x_Inp8ThFF8s0A==/myapplication-1x117vtYx9KaSP60Rf7Z6g==/base.apk)
        at f.d.a.b.createViewManagers(ReactVideoPackage.java:28)
        at com.facebook.react.q.F(ReactInstanceManager.java:850)
        at com.facebook.react.a.h(CoreModulesPackage.java:190)
        at com.facebook.react.a.c(CoreModulesPackage.java:158)
        at com.facebook.react.y$b.a(TurboReactPackage.java:159)
        at com.facebook.react.y$b.get(TurboReactPackage.java:147)
        at com.facebook.react.bridge.ModuleHolder.create(ModuleHolder.java:191)
        at com.facebook.react.bridge.ModuleHolder.getModule(ModuleHolder.java:156)
        at com.facebook.react.bridge.NativeModuleRegistry.getModule(NativeModuleRegistry.java:149)
        at com.facebook.react.bridge.CatalystInstanceImpl.getNativeModule(CatalystInstanceImpl.java:596)
        at com.facebook.react.bridge.CatalystInstanceImpl.getNativeModule(CatalystInstanceImpl.java:566)
        at com.facebook.react.uimanager.q0.e(UIManagerHelper.java:70)
        at com.facebook.react.uimanager.q0.d(UIManagerHelper.java:38)
        at com.facebook.react.q.t(ReactInstanceManager.java:1136)
        at com.facebook.react.q.g0(ReactInstanceManager.java:1083)
        at com.facebook.react.q.i(ReactInstanceManager.java:131)
        at com.facebook.react.q$e$b.run(ReactInstanceManager.java:1037)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:27)
        at android.os.Looper.loop(Looper.java:246)
        at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:226)
        at java.lang.Thread.run(Thread.java:923)

Hi @shingshing6, thanks for the post.

I’m sorry, but I do not see anything indicating that the SDK is involved in this stack trace. Please let me know if I am missing something and I will be happy to help.

Thanks!

Hi @jon.lieblich

I have no idea too. Previously i use SDK 5.4.3.613 and it works fine. After i use the new SDK, it caused this error.

I only replaced commonlib and mobiletrc folder with latest SDK in my project.

Thanks

Hi @shingshing6,

Since the SDK is not mentioned in the stack trace, we will not be able to assist further. Let me know if you find any new information indicating that the SDK is involved.

Thanks!

Hi @jon.lieblich

I have another problem when build the app listed below, would you please give some advise?

Task :app:minifyDebugWithR8 FAILED
AGPBI: {“kind”:“error”,“text”:“Type a.a.a.a.b is defined multiple times: /Users/administrator/.gradle/caches/transforms-2/files-2.1/fcec62ff4ba6793198c882ba039b9cb1/jetified-mtrecsdk-1.0.8.15-runtime.jar:a/a/a/a/b.class, /Users/administrator/Documents/project/android/zoommobilertc/build/.transforms/22fdd739dd600bae258cdb3c47075832/jetified-mobilertc-runtime.jar:a/a/a/a/b.class”,“sources”:[{“file”:"/Users/administrator/.gradle/caches/transforms-2/files-2.1/fcec62ff4ba6793198c882ba039b9cb1/jetified-mtrecsdk-1.0.8.15-runtime.jar"}],“tool”:“R8”}

Execution failed for task ‘:app:minifyDebugWithR8’.
com.android.tools.r8.CompilationFailedException: Compilation failed to complete, origin: /Users/administrator/.gradle/caches/transforms-2/files-2.1/fcec62ff4ba6793198c882ba039b9cb1/jetified-mtrecsdk-1.0.8.15-runtime.jar:a/a/a/a/b.class

Type a.a.a.a.b is defined multiple times: /Users/administrator/.gradle/caches/transforms-2/files-2.1/fcec62ff4ba6793198c882ba039b9cb1/jetified-mtrecsdk-1.0.8.15-runtime.jar:a/a/a/a/b.class, /Users/administrator/Documents/project/android/zoommobilertc/build/.transforms/22fdd739dd600bae258cdb3c47075832/jetified-mobilertc-runtime.jar:a/a/a/a/b.class

Thanks

Hi @shingshing6,

I am still not seeing any mentions of our SDK in these errors. As a reminder, we can only provide assistance with issues directly related to our SDK.

Thanks!

Hi @jon.lieblich

The above error metioned mobilertc, it is not related to Zoom SDK?

Type a.a.a.a.b is defined multiple times: /Users/administrator/.gradle/caches/transforms-2/files-2.1/fcec62ff4ba6793198c882ba039b9cb1/jetified-mtrecsdk-1.0.8.15-runtime.jar:a/a/a/a/b.class, /Users/administrator/Documents/project/android/mobilertc/build/.transforms/22fdd739dd600bae258cdb3c47075832/jetified-mobilertc-runtime.jar:a/a/a/a/b.class

Thanks.

@shingshing6 Were you able to find solution for the bug above, for which you shared error log? I have very similar problem related to exoplayer

Hi @shingshing6,

Yes, mobilertc is one of the two SDK modules. However, your previous reply did not contain any mentions of the mobilertc module. Instead, a couple of the errors contained zoommobilertc. Did you rename the mobilertc module in your project at some point after installing the SDK to zoommobilertc?

Thanks!

Hi @osumeja27,

This forum is only meant to assist with issues directly related to the Zoom Meeting SDK. If you need general assistance with an error unrelated to our SDK, please visit StackOverflow or a similar alternative. :slightly_smiling_face:

Thanks!

hi @jon.lieblich

Yes, i have renamed it before. However, it is the same case if i use the default name of the SDK. Any suggestions?

Thanks.

Hi @shingshing6,

The name of your mobilertc and commonlib modules should not matter, as long as they are being properly added to your project’s dependencies.

When you updated from the previous version of the SDK, did you update both the mobilertc.aar and commonlib.aar files in your project? If you are unsure, you can try removing these from your project entirely and adding the back in as if you were integrating them for the first time.

Thanks!

Hi @jon.lieblich

Yes. I am sure i have added both of them when integration them into my project.

Thanks

Hi @shingshing6,

Thanks for confirming. Can you please provide your mobilertc/build.gradle file’s contents so that we can verify all of the required dependencies are properly setup?

Thanks!

Hi @jon.lieblich

The mobilertc/build.gradle as below:

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

While in app/build.gradle i put this

implementation ‘androidx.security:security-crypto:1.1.0-alpha02’
implementation ‘com.google.crypto.tink:tink-android:1.5.0’
implementation ‘com.google.android.exoplayer:exoplayer-core:2.11.4’
implementation ‘com.google.android.exoplayer:exoplayer-ui:2.11.4’
implementation ‘androidx.swiperefreshlayout:swiperefreshlayout:1.0.0’

implementation ‘com.google.android:flexbox:2.0.1’
implementation ‘androidx.multidex:multidex:2.0.0’
implementation ‘com.google.code.gson:gson:2.8.1’
implementation ‘com.github.bumptech.glide:annotations:4.12.0’
implementation ‘com.github.bumptech.glide:glide:4.12.0’

implementation ‘androidx.recyclerview:recyclerview:1.0.0’
implementation ‘androidx.appcompat:appcompat:1.3.0’
implementation ‘androidx.constraintlayout:constraintlayout:2.0.4’
implementation ‘com.google.android.material:material:1.4.0’

Some versions are changed due to my project need.

Thanks