jitsi / jitsi-meet-flutter-sdk

Jitsi Meet plugin for Flutter
Apache License 2.0
44 stars 33 forks source link

My App crashes when joining a meet despite adding the proguard rules #93

Open FulbertoDev opened 3 weeks ago

FulbertoDev commented 3 weeks ago

### Description My App crashes when joining a meet despite adding the proguard.

### Error Logs

2024-10-28 22:47:50.925 20669-20669 JitsiMeetSDK           java.lang.NoClassDefFoundError: Failed resolution of: Lorg/jitsi/jitsi_meet_flutter_sdk/WrapperJitsiMeetActivity;
                                                                                                        at org.jitsi.jitsi_meet_flutter_sdk.JitsiMeetPlugin.join(JitsiMeetPlugin.kt:130)
                                                                                                        at org.jitsi.jitsi_meet_flutter_sdk.JitsiMeetPlugin.onMethodCall(JitsiMeetPlugin.kt:42)
                                                                                                        at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267)
                                                                                                        at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
                                                                                                        at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
                                                                                                        at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0)
                                                                                                        at android.os.Handler.handleCallback(Handler.java:790)
                                                                                                        at android.os.Handler.dispatchMessage(Handler.java:99)
                                                                                                        at android.os.Looper.loop(Looper.java:210)
                                                                                                        at android.app.ActivityThread.main(ActivityThread.java:7080)
                                                                                                        at java.lang.reflect.Method.invoke(Native Method)
                                                                                                        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:523)
                                                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:863)
                                                                                                    Caused by: java.lang.ClassNotFoundException: org.jitsi.jitsi_meet_flutter_sdk.WrapperJitsiMeetActivity
                                                                                                        at java.lang.VMClassLoader.findLoadedClass(Native Method)
                                                                                                        at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738)
                                                                                                        at java.lang.ClassLoader.loadClass(ClassLoader.java:363)
                                                                                                        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
                                                                                                        at org.jitsi.jitsi_meet_flutter_sdk.JitsiMeetPlugin.join(JitsiMeetPlugin.kt:130) 
                                                                                                        at org.jitsi.jitsi_meet_flutter_sdk.JitsiMeetPlugin.onMethodCall(JitsiMeetPlugin.kt:42) 
                                                                                                        at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267) 
                                                                                                        at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292) 
                                                                                                        at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319) 
                                                                                                        at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0) 
                                                                                                        at android.os.Handler.handleCallback(Handler.java:790) 
                                                                                                        at android.os.Handler.dispatchMessage(Handler.java:99) 
                                                                                                        at android.os.Looper.loop(Looper.java:210) 
                                                                                                        at android.app.ActivityThread.main(ActivityThread.java:7080) 
                                                                                                        at java.lang.reflect.Method.invoke(Native Method) 
                                                                                                        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:523) 
                                                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:863) 
                                                                                                    Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/jitsi/meet/sdk/JitsiMeetActivity;
                                                                                                        at org.jitsi.jitsi_meet_flutter_sdk.JitsiMeetPlugin.join(JitsiMeetPlugin.kt:130) 
                                                                                                        at org.jitsi.jitsi_meet_flutter_sdk.JitsiMeetPlugin.onMethodCall(JitsiMeetPlugin.kt:42) 
                                                                                                        at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267) 
                                                                                                        at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292) 
                                                                                                        at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319) 
                                                                                                        at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0) 
                                                                                                        at android.os.Handler.handleCallback(Handler.java:790) 
                                                                                                        at android.os.Handler.dispatchMessage(Handler.java:99) 
                                                                                                        at android.os.Looper.loop(Looper.java:210) 
                                                                                                        at android.app.ActivityThread.main(ActivityThread.java:7080) 
                                                                                                        at java.lang.reflect.Method.invoke(Native Method) 
                                                                                                        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:523) 
                                                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:863) 
                                                                                                    Caused by: java.lang.ClassNotFoundException: org.jitsi.meet.sdk.JitsiMeetActivity
                                                                                                        at java.lang.VMClassLoader.findLoadedClass(Native Method)
                                                                                                        at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738)
                                                                                                        at java.lang.ClassLoader.loadClass(ClassLoader.java:363)
                                                                                                        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
                                                                                                        at org.jitsi.jitsi_meet_flutter_sdk.JitsiMeetPlugin.join(JitsiMeetPlugin.kt:130) 
                                                                                                        at org.jitsi.jitsi_meet_flutter_sdk.JitsiMeetPlugin.onMethodCall(JitsiMeetPlugin.kt:42) 
                                                                                                        at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:267) 
                                                                                                        at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292) 
                                                                                                        at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319) 
                                                                                                        at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(D8$$SyntheticClass:0) 
                                                                                                        at android.os.Handler.handleCallback(Handler.java:790) 
                                                                                                        at android.os.Handler.dispatchMessage(Handler.java:99) 
                                                                                                        at android.os.Looper.loop(Looper.java:210) 
                                                                                                        at android.app.ActivityThread.main(ActivityThread.java:7080) 
                                                                                                        at java.lang.reflect.Method.invoke(Native Method) 
                                                                                                        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:523) 
                                                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:863) 
                                                                                                    Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/fragment/app/FragmentActivity;
                                                                                                        at com.xamdesign.safe_device.LocationAssistantListener.<init>(SafeDevicePlugin.java:101)
                                                                                                        at com.xamdesign.safe_device.SafeDevicePlugin.onAttachedToEngine(SafeDevicePlugin.java:34)
                                                                                                        at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.add(FlutterEngineConnectionRegistry.java:147)
                                                                                                        at io.flutter.plugins.GeneratedPluginRegistrant.registerWith(GeneratedPluginRegistrant.java:64)
                                                                                                        at java.lang.reflect.Method.invoke(Native Method)
                                                                                                        at io.flutter.embedding.engine.plugins.util.GeneratedPluginRegister.registerGeneratedPlugins(GeneratedPluginRegister.java:80)
                                                                                                        at io.flutter.embedding.android.FlutterActivity.configureFlutterEngine(FlutterActivity.java:1336)
                                                                                                        at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach(FlutterActivityAndFragmentDelegate.java:219)
                                                                                                        at io.flutter.embedding.android.FlutterActivity.onCreate(FlutterActivity.java:638)
                                                                                                        at android.app.Activity.performCreate(Activity.java:7314)
                                                                                                        at android.app.Activity.performCreate(Activity.java:7305)
                                                                                                        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215)
                                                                                                        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2959)
                                                                                                        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3084)
                                                                                                        at android.app.ActivityThread.-wrap11(Unknown Source:0)
                                                                                                        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1781)
                                                                                                        at android.os.Handler.dispatchMessage(Handler.java:106)
                                                                                                        at android.os.Looper.loop(Looper.java:210) 
                                                                                                        at android.app.ActivityThread.main(ActivityThread.java:7080) 
                                                                                                        at java.lang.reflect.Method.invoke(Native Method) 
                                                                                                        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:523) 
                                                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:863) 
                                                                                                    Caused by: java.lang.ClassNotFoundException: androidx.fragment.app.FragmentActivity
                                                                                                        at java.lang.VMClassLoader.findLoadedClass(Native Method)
                                                                                                        at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:738)
                                                                                                        at java.lang.ClassLoader.loadClass(ClassLoader.java:363)
                                                                                                        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
                                                                                                        at com.xamdesign.safe_device.LocationAssistantListener.<init>(SafeDevicePlugin.java:101) 
                                                                                                        at com.xamdesign.safe_device.SafeDevicePlugin.onAttachedToEngine(SafeDevicePlugin.java:34) 
                                                                                                        at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.add(FlutterEngineConnectionRegistry.java:147) 
                                                                                                        at io.flutter.plugins.GeneratedPluginRegistrant.registerWith(GeneratedPluginRegistrant.java:64) 
                                                                                                        at java.lang.reflect.Method.invoke(Native Method) 
                                                                                                        at io.flutter.embedding.engine.plugins.util.GeneratedPluginRegister.registerGeneratedPlugins(GeneratedPluginRegister.java:80) 
                                                                                                        at io.flutter.embedding.android.FlutterActivity.configureFlutterEngine(FlutterActivity.java:1336) 
                                                                                                        at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach(FlutterActivityAndFragmentDelegate.java:219) 
                                                                                                        at io.flutter.embedding.android.FlutterActivity.onCreate(FlutterActivity.java:638) 
                                                                                                        at android.app.Activity.performCreate(Activity.java:7314) 
                                                                                                        at android.app.Activity.performCreate(Activity.java:7305) 
                                                                                                        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215) 
                                                                                                        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2959) 
                                                                                                        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3084) 
                                                                                                        at android.app.ActivityThread.-wrap11(Unknown Source:0) 
                                                                                                        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1781) 
                                                                                                        at android.os.Handler.dispatchMessage(Handler.java:106) 
                                                                                                        at android.os.Looper.loop(Looper.java:210) 
                                                                                                        at android.app.ActivityThread.main(ActivityThread.java:7080) 
                                                                                                        at java.lang.reflect.Method.invoke(Native Method) 
                                                                                                        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:523) 
                                                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:863) 
                                                                                                    Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/activity/ComponentActivity;
                                                                                                        at com.xamdesign.safe_device.LocationAssistantListener.<init>(SafeDevicePlugin.java:101) 
                                                                                                        at com.xamdesign.safe_device.SafeDevicePlugin.onAttachedToEngine(SafeDevicePlugin.java:34) 
                                                                                                        at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.add(FlutterEngineConnectionRegistry.java:147) 
                                                                                                        at io.flutter.plugins.GeneratedPluginRegistrant.registerWith(GeneratedPluginRegistrant.java:64) 
                                                                                                        at java.lang.reflect.Method.invoke(Native Method) 
                                                                                                        at io.flutter.embedding.engine.plugins.util.GeneratedPluginRegister.registerGeneratedPlugins(GeneratedPluginRegister.java:80) 
                                                                                                        at io.flutter.embedding.android.FlutterActivity.configureFlutterEngine(FlutterActivity.java:1336) 
                                                                                                        at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach(FlutterActivityAndFragmentDelegate.java:219) 
                                                                                                        at io.flutter.embedding.android.FlutterActivity.onCreate(FlutterActivity.java:638) 
                                                                                                        at android.app.Activity.performCreate(Activity.java:7314) 
                                                                                                        at android.app.Activity.performCreate(Activity.java:7305) 
                                                                                                        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1215) 
                                                                                                        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2959) 
                                                                                                        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3084) 
                                                                                                        at android.app.ActivityThread.-wrap11(Unknown Source:0) 
                                                                                                        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1781) 
                                                                                                        at android.os.Handler.dispatchMessage(Handler.java:106) 
                                                                                                        at android.os.Looper.loop(Looper.java:210) 
                                                                                                        at android.app.ActivityThread.main(ActivityThread.java:7080) 
                                                                                                        at java.lang.reflect.Method.invoke(Native Method) 
                                                                                                        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:523) 
                                                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:863) 
                                                                                                    Caused by: java.lang.ClassNotFoundException: androidx.activity.
FulbertoDev commented 3 weeks ago

On real device

saghul commented 3 weeks ago

What proguard rules did you use?

FulbertoDev commented 3 weeks ago

What proguard rules did you use?

This one. I take it from one of your comment in similar issue. https://github.com/jitsi/jitsi-meet/blob/master/android/app/proguard-rules.pro

In the error logs, i found a trace of the name of another plugin i use: safe_device. I don't know if there is an incompatibility with jitsi

saghul commented 3 weeks ago

I haven't herad of that plugin. Can you reproduce the problem compiling the sample app?

FulbertoDev commented 3 weeks ago

When I use the sample app, the problem didn't occurs.

saghul commented 3 weeks ago

Can you create a small sample that reproduces the problem?