Release Mode Missing Class Exception

This is the error I get when I run my app on release mode, however it works perfectly on debug mode I have tried everything including proguard-rules.pro. But nothing seems to work.

Just for context, the previous developer has left and I have replaced him in this project could it be something related to a signature/ UID/ API-key?

Exception java.lang.ExceptionInInitializerError:
at us.zoom.internal.impl.e.a (ZoomSDKImpl.java:64)
at us.zoom.sdk.ZoomSDK.initialize (ZoomSDK.java:1)
at com.example.lms.MainActivity.configureFlutterEngine$lambda$0 (MainActivity.kt:60)
at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage (MethodChannel.java:258)
at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler (DartMessenger.java:295)
at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0 (DartMessenger.java:322)
at android.os.Handler.handleCallback (Handler.java:942)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loopOnce (Looper.java:211)
at android.os.Looper.loop (Looper.java:300)
at android.app.ActivityThread.main (ActivityThread.java:8410)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:559)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:954)
Caused by java.lang.ClassNotFoundException:
at java.lang.Runtime.nativeLoad
at java.lang.Runtime.loadLibrary0 (Runtime.java:1079)
at java.lang.Runtime.loadLibrary0 (Runtime.java:1003)
at java.lang.System.loadLibrary (System.java:1765)
at com.zipow.cmmlib.AppContext. (AppContext.java:5)

I have a same issue on Release build.

Hi, I resolved the issue with proguad-rules.pro only. I used these lines in the file. Makes sure the contents of the file match this exactly.

-keep class us.zoom.** { *; }
-keep class com.zipow.** { *; }
-keep class us.zipow.** { *; }
-keep class org.webrtc.** { *; }
-keep class com.google.protobuf.** { *; }
-keep class com.google.crypto.tink.** { *; }
-keep class androidx.security.crypto.** { *; }

@Ronit1
Thanks for the info!

Unfortunately, adding those lines to proguard-rules.pro didn’t fix the issue in my case.

However, by following missing_rules.txt, I was able to build the release version by adding the following rules:

-dontwarn us.zoom.libtools.helper.ImageCache$Key
-dontwarn us.zoom.libtools.helper.ImageCache
-dontwarn us.zoom.libtools.services.ExceptionDump
-dontwarn us.zoom.libtools.services.ZmContextServices
-dontwarn us.zoom.libtools.utils.ZmAccessibilityUtils
-dontwarn us.zoom.libtools.utils.ZmFileIOUtils
-dontwarn us.zoom.libtools.utils.ZmFileUtils

That said, I’m not sure if these files should really be ignored, so I’d like to get an answer from the developers.