romatroskin / social_share_plugin

Social Share to Facebook and Instagram Flutter plugin.
BSD 2-Clause "Simplified" License
41 stars 87 forks source link

App is Crashing #61

Closed Ashhad08 closed 1 year ago

Ashhad08 commented 1 year ago

E/AndroidRuntime(10886): java.lang.ExceptionInInitializerError E/AndroidRuntime(10886): at com.cygnati.social_share_plugin.SocialSharePlugin.facebookShareLink(SocialSharePlugin.kt:194) E/AndroidRuntime(10886): at com.cygnati.social_share_plugin.SocialSharePlugin.onMethodCall(SocialSharePlugin.kt:108) E/AndroidRuntime(10886): at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:258) E/AndroidRuntime(10886): at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:295) E/AndroidRuntime(10886): at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:322) E/AndroidRuntime(10886): at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(Unknown Source:12) E/AndroidRuntime(10886): at android.os.Handler.handleCallback(Handler.java:938) E/AndroidRuntime(10886): at android.os.Handler.dispatchMessage(Handler.java:99) E/AndroidRuntime(10886): at android.os.Looper.loopOnce(Looper.java:233) E/AndroidRuntime(10886): at android.os.Looper.loop(Looper.java:334) E/AndroidRuntime(10886): at android.app.ActivityThread.main(ActivityThread.java:8399) E/AndroidRuntime(10886): at java.lang.reflect.Method.invoke(Native Method) E/AndroidRuntime(10886): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:582) E/AndroidRuntime(10886): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1068) E/AndroidRuntime(10886): Caused by: The SDK has not been initialized, make sure to call FacebookSdk.sdkInitialize() first. E/AndroidRuntime(10886): at com.facebook.internal.Validate.sdkInitialized(Validate.kt:131) E/AndroidRuntime(10886): at com.facebook.FacebookSdk.getCallbackRequestCodeOffset(FacebookSdk.kt:1026) E/AndroidRuntime(10886): at com.facebook.internal.CallbackManagerImpl$RequestCodeOffset.toRequestCode(CallbackManagerImpl.kt:72) E/AndroidRuntime(10886): at com.facebook.share.widget.ShareDialog.(ShareDialog.java:91) E/AndroidRuntime(10886): ... 14 more Lost connection to device.