Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FulbertoDev opened this issue Oct 28, 2024 · 6 comments
Open

Comments

@FulbertoDev
Copy link

FulbertoDev commented Oct 28, 2024

### 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
Copy link
Author

On real device

@saghul
Copy link
Member

saghul commented Oct 29, 2024

What proguard rules did you use?

@FulbertoDev
Copy link
Author

FulbertoDev commented Oct 29, 2024

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
Copy link
Member

saghul commented Oct 29, 2024

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

@FulbertoDev
Copy link
Author

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

@saghul
Copy link
Member

saghul commented Oct 29, 2024

Can you create a small sample that reproduces the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants