hi Carson_Chen:
We try to upgrade the sdk but look like the latest sdk ( v4.6.15086.0209) but got the proguard problem and can be reproduce in demo
just change minifyEnabled to true in debug inside mobilertc-android-studio/sample/build.gradle
debug {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.cfg'
}
and run, it crash immediately:
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] JNI DETECTED ERROR IN APPLICATION: JNI NewGlobalRef called with pending exception java.lang.ClassNotFoundException: Didn't find class "us.zipow.mdm.ZMMdmManager" on path: DexPathList[[zip file "/data/app/us.zoom.sdkexample-2/base.apk"],nativeLibraryDirectories=[/data/app/us.zoom.sdkexample-2/lib/arm, /data/app/us.zoom.sdkexample-2/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:511)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:469)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at int com.zipow.videobox.mainboard.Mainboard.initMainboard(java.lang.String, java.lang.String, byte[], java.lang.String[], int) ((null):-2)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void com.zipow.videobox.mainboard.Mainboard.initialize(java.lang.String, boolean, int) ((null):-1)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void com.zipow.videobox.f.c(boolean, int) ((null):-1)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void com.zipow.videobox.f.b(boolean, int) ((null):-1)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void com.zipow.videobox.f.a(boolean, int) ((null):-1)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void com.zipow.videobox.f.b(android.content.Context, boolean, int) ((null):-1)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void us.zoom.sdk.bw.a(android.content.Context, us.zoom.sdk.cb, us.zoom.sdk.ca) ((null):-1)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void us.zoom.sdksample.a.b.a(android.content.Context, us.zoom.sdksample.a.a) ((null):-1)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void us.zoom.sdksample.ui.InitAuthSDKActivity.onCreate(android.os.Bundle) ((null):-1)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6251)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1107)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2369)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2476)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void android.app.ActivityThread.-wrap11(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:-1)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1344)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void android.os.Looper.loop() (Looper.java:148)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:5417)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:726)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:616)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410]
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] in call to NewGlobalRef
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] from int com.zipow.videobox.mainboard.Mainboard.initMainboard(java.lang.String, java.lang.String, byte[], java.lang.String[], int)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] "main" prio=5 tid=1 Runnable
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] | group="main" sCount=0 dsCount=0 obj=0x73e342a0 self=0xb4db6500
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] | sysTid=10586 nice=0 cgrp=default sched=0/0 handle=0xb6f93b34
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] | state=R schedstat=( 702032806 75597450 767 ) utm=63 stm=7 core=0 HZ=100
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] | stack=0xbe5a3000-0xbe5a5000 stackSize=8MB
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] | held mutexes= "mutator lock"(shared held)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #00 pc 00370e01 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_9ArtMethodEPv+160)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #01 pc 0035046f /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+150)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #02 pc 0025a725 /system/lib/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+740)
03-21 16:23:36.345 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #03 pc 0025adfd /system/lib/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+64)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #04 pc 000fd1d1 /system/lib/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+32)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #05 pc 001022e5 /system/lib/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE.constprop.95+5072)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #06 pc 001146d1 /system/lib/libart.so (_ZN3art8CheckJNI12NewGlobalRefEP7_JNIEnvP8_jobject+392)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #07 pc 000495ad /data/app/us.zoom.sdkexample-2/lib/arm/libcmmlib.so (???)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #08 pc 00049763 /data/app/us.zoom.sdkexample-2/lib/arm/libcmmlib.so (_ZN3Cmm16RefreshMDMConfigEv+22)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #09 pc 0003dcbb /data/app/us.zoom.sdkexample-2/lib/arm/libcmmlib.so (???)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #10 pc 0003d5f1 /data/app/us.zoom.sdkexample-2/lib/arm/libcmmlib.so (???)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #11 pc 0003eb11 /data/app/us.zoom.sdkexample-2/lib/arm/libcmmlib.so (???)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #12 pc 0003f131 /data/app/us.zoom.sdkexample-2/lib/arm/libcmmlib.so (_ZN5zpref20CreatePolicyProviderERKNS_15PolicyContext_sE+108)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #13 pc 00004db3 /data/app/us.zoom.sdkexample-2/lib/arm/libzoom.so (???)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #14 pc 0000ac3d /data/app/us.zoom.sdkexample-2/lib/arm/libzoom.so (???)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #15 pc 000074f5 /data/app/us.zoom.sdkexample-2/lib/arm/libzoom.so (???)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #16 pc 00009087 /data/app/us.zoom.sdkexample-2/lib/arm/libzoom.so (_Z13InitMainboardPKcS0_iiPKS0_12PROCESS_TYPE+322)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #17 pc 00004b01 /data/app/us.zoom.sdkexample-2/lib/arm/libzLoader.so (Java_com_zipow_videobox_mainboard_Mainboard_initMainboard+196)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #18 pc 007ae79f /data/app/us.zoom.sdkexample-2/oat/arm/base.odex (int com.zipow.videobox.mainboard.Mainboard.initMainboard(java.lang.String, java.lang.String, byte[], java.lang.String[], int)+178)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #19 pc 007b3e03 /data/app/us.zoom.sdkexample-2/oat/arm/base.odex (void com.zipow.videobox.mainboard.Mainboard.initialize(java.lang.String, boolean, int)+1902)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #20 pc 00f2699f /data/app/us.zoom.sdkexample-2/oat/arm/base.odex (void com.zipow.videobox.f.c(boolean, int)+306)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #21 pc 00f1d5b5 /data/app/us.zoom.sdkexample-2/oat/arm/base.odex (void com.zipow.videobox.f.b(boolean, int)+304)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #22 pc 00f1cfa1 /data/app/us.zoom.sdkexample-2/oat/arm/base.odex (void com.zipow.videobox.f.a(boolean, int)+484)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #23 pc 00f1d3c9 /data/app/us.zoom.sdkexample-2/oat/arm/base.odex (void com.zipow.videobox.f.b(android.content.Context, boolean, int)+244)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #24 pc 01480e51 /data/app/us.zoom.sdkexample-2/oat/arm/base.odex (void us.zoom.sdk.bw.a(android.content.Context, us.zoom.sdk.cb, us.zoom.sdk.ca)+1332)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #25 pc 003cc02f /data/app/us.zoom.sdkexample-2/oat/arm/base.odex (void us.zoom.sdksample.a.b.a(android.content.Context, us.zoom.sdksample.a.a)+490)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #26 pc 00ad9447 /data/app/us.zoom.sdkexample-2/oat/arm/base.odex (void us.zoom.sdksample.ui.InitAuthSDKActivity.onCreate(android.os.Bundle)+1194)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] native: #27 pc 007750a1 /data/dalvik-cache/arm/system@framework@boot.oat (???)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at com.zipow.videobox.mainboard.Mainboard.initMainboard(Native method)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at com.zipow.videobox.mainboard.Mainboard.initialize(unavailable:-1)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at com.zipow.videobox.f.c(unavailable:-1)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at com.zipow.videobox.f.b(unavailable:-1)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at com.zipow.videobox.f.a(unavailable:-1)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at com.zipow.videobox.f.b(unavailable:-1)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] - locked <0x0b4b9919> (a java.lang.Class<com.zipow.videobox.f>)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at us.zoom.sdk.bw.a(unavailable:-1)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at us.zoom.sdksample.a.b.a(unavailable:-1)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at us.zoom.sdksample.ui.InitAuthSDKActivity.onCreate(unavailable:-1)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at android.app.Activity.performCreate(Activity.java:6251)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at android.app.ActivityThread.-wrap11(ActivityThread.java:-1)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at android.os.Handler.dispatchMessage(Handler.java:102)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at android.os.Looper.loop(Looper.java:148)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at android.app.ActivityThread.main(ActivityThread.java:5417)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at java.lang.reflect.Method.invoke!(Native method)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
03-21 16:23:36.346 10586-10586/us.zoom.sdkexample A/art: art/runtime/java_vm_ext.cc:410]
03-21 16:23:36.546 10586-10586/us.zoom.sdkexample A/art: art/runtime/runtime.cc:366] Runtime aborting...
debug without proguard is ok.
any help?