EddieKamau / sms_advanced

This is an SMS library for Flutter. Its allow to send, receive, query sms messages, sms delivery and query contacts info. Currently supporting only android
MIT License
31 stars 69 forks source link

Error registering plugin sms_advanced, com.elyudde.sms_advanced.SmsAdvancedPlugin #28

Open Gunnala-srija opened 1 year ago

Gunnala-srija commented 1 year ago

I am getting this error

Error registering plugin android_sms_retriever, me.arsam.sms_retriever.SmsRetrieverPlugin java.lang.ClassCastException: com.sakhi.sakhi.MainActivity cannot be cast to io.flutter.embedding.android.FlutterActivity at me.arsam.sms_retriever.SmsRetrieverPlugin.onAttachedToActivity(SmsRetrieverPlugin.kt:84) at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.add(FlutterEngineConnectionRegistry.java:156) at io.flutter.plugins.GeneratedPluginRegistrant.registerWith(GeneratedPluginRegistrant.java:19) 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.FlutterFragmentActivity.configureFlutterEngine(FlutterFragmentActivity.java:781) at io.flutter.embedding.android.FlutterFragment.configureFlutterEngine(FlutterFragment.java:1513) at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onAttach(FlutterActivityAndFragmentDelegate.java:214) at io.flutter.embedding.android.FlutterFragment.onAttach(FlutterFragment.java:1046) at androidx.fragment.app.Fragment.performAttach(Fragment.java:2574) at androidx.fragment.app.FragmentManagerImpl.moveToState(FragmentManagerImpl.java:828) at androidx.fragment.app.FragmentTransition.addToFirstInLastOut(FragmentTransition.java:1197) at androidx.fragment.app.FragmentTransition.calculateFragments(FragmentTransition.java:1080) at androidx.fragment.app.FragmentTransition.startTransitions(FragmentTransition.java:119) at androidx.fragment.app.FragmentManagerImpl.executeOpsTogether(FragmentManagerImpl.java:1866) at androidx.fragment.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManagerImpl.java:1824) at androidx.fragment.app.FragmentManagerImpl.execPendingActions(FragmentManagerImpl.java:1727) at androidx.fragment.app.FragmentManagerImpl.dispatchStateChange(FragmentManagerImpl.java:2663) at androidx.fragment.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManagerImpl.java:2613) at androidx.fragment.app.FragmentController.dispatchActivityCreated(FragmentController.java:246) at androidx.fragment.app.FragmentActivity.onStart(FragmentActivity.java:542) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1543) at android.app.Activity.performStart(Activity.java:8367) at android.app.ActivityThread.handleStartActivity(ActivityThread.java:3669) at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:224) at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:204) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2306) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7918) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)