mieszko4 / react-native-zoom-us-test

Example repository of using react-native-zoom-us bridge
16 stars 13 forks source link

Updated build.gradle #40

Closed satinderbajwa closed 2 years ago

satinderbajwa commented 2 years ago

Getting error on App startup in android. Fixed by adding two lines of code in App level build.gradle file.

Error:: --------- beginning of crash 2022-03-05 12:32:56.546 15474-15474/com.zoomustest E/AndroidRuntime: FATAL EXCEPTION: main Process: com.zoomustest, PID: 15474 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/bumptech/glide/Glide; at us.zoom.sdk.ZoomSDK.initialize(ZoomSDK.java:93) at ch.milosz.reactnative.RNZoomUsModule$2.run(RNZoomUsModule.java:163) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:236) at android.app.ActivityThread.main(ActivityThread.java:8019) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.bumptech.glide.Glide" on path: DexPathList[[zip file "/data/app/uAxrddS0f2_K2QblEg5JfQ==/com.zoomustest-XLy69CLWaVajllgLiBv4ew==/base.apk"],nativeLibraryDirectories=[/data/app/uAxrddS0f2_K2QblEg5JfQ==/com.zoomustest-XLy69CLWaVajllgLiBv4ew==/lib/arm64, /data/app/~~uAxrddS0f2_K2QblEg5JfQ==/com.zoomustest-XLy69CLWaVajllgLiBv4ew==/base.apk!/lib/arm64-v8a, /system/lib64, /system_ext/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:207) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) at us.zoom.sdk.ZoomSDK.initialize(ZoomSDK.java:93) at ch.milosz.reactnative.RNZoomUsModule$2.run(RNZoomUsModule.java:163) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:236) at android.app.ActivityThread.main(ActivityThread.java:8019) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967) 2022-03-05 12:32:56.550 15474-15474/com.zoomustest D/OOMEventManagerFK: checkEventAndDumpForJE: 0 2022-03-05 12:32:56.589 15474-15474/com.zoomustest I/Process: Sending signal. PID: 15474 SIG: 9

mieszko4 commented 2 years ago

Seems to be related to https://github.com/mieszko4/react-native-zoom-us-test/issues/39#issuecomment-1066527319. (using react-native-zoom-us@6.7.1 should resolve this problem)