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

No implementation found for method configure on channel com.amazonaws.amplify/core #80

Closed
magicmass opened this issue Aug 21, 2020 · 8 comments
Labels
bug Something is not working; the issue has reproducible steps and has been reproduced core Issues related to the Amplify Core Plugin pending-close-response-required The issue will be closed if details necessary to reproduce the issue are not provided within 7 days. to-be-reproduced Issues that have not been reproduced yet, but have reproduction steps provided

Comments

@magicmass
Copy link

Describe the bug
When running the example app and viewing the loading page to the it will show a Missing plugin exception.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the example app
  2. Run the example app
  3. See error

Expected behavior
No exceptions thrown
Screenshots
Exception which i receive:

[ERROR:flutter/lib/ui/ui_dart_state.cc(167)] Unhandled Exception: MissingPluginException(No implementation found for method configure on channel com.amazonaws.amplify/core)
E/flutter ( 9324): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:7)
E/flutter ( 9324):
E/flutter ( 9324): #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:334:12)
E/flutter ( 9324): #2 MethodChannelAmplifyCore.configure (package:amplify_core_plugin_interface/method_channel_amplify.dart:25:21)
E/flutter ( 9324): #3 Amplify.configure (package:amplify_core/amplify_core.dart:66:35)
E/flutter ( 9324): #4 _MyAppState._initAmplifyFlutter (package:example/main.dart:34:19)
E/flutter ( 9324): #5 _MyAppState.initState (package:example/main.dart:23:5)
E/flutter ( 9324): #6 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4697:58)
E/flutter ( 9324): #7 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4533:5)
E/flutter ( 9324): #8 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3503:14)
E/flutter ( 9324): #9 Element.updateChild (package:flutter/src/widgets/framework.dart:3262:18)
E/flutter ( 9324): #10 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1217:16)
E/flutter ( 9324): #11 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1188:5)
E/flutter ( 9324): #12 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:1130:17)
E/flutter ( 9324): #13 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2622:19)
E/flutter ( 9324): #14 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1129:13)
E/flutter ( 9324): #15 WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:941:7)
E/flutter ( 9324): #16 WidgetsBinding.scheduleAttachRootWidget. (package:flutter/src/widgets/binding.dart:922:7)
E/flutter ( 9324): #17 _rootRun (dart:async/zone.dart:1182:47)
E/flutter ( 9324): #18 _CustomZone.run (dart:async/zone.dart:1093:19)
E/flutter ( 9324): #19 _CustomZone.runGuarded (dart:async/zone.dart:997:7)
E/flutter ( 9324): #20 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23)
E/flutter ( 9324): #21 _rootRun (dart:async/zone.dart:1190:13)
E/flutter ( 9324): #22 _CustomZone.run (dart:async/zone.dart:1093:19)
E/flutter ( 9324): #23 _CustomZone.bindCallback. (dart:async/zone.dart:1021:23)
E/flutter ( 9324): #24 Timer._createTimer. (dart:async-patch/timer_patch.dart:18:15)
E/flutter ( 9324): #25 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:397:19)
E/flutter ( 9324): #26 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:428:5)
E/flutter ( 9324): #27 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
E/flutter ( 9324):

Platform
Android flutter

Smartphone (please complete the following information):
Android emulator running Android 10.0, API 29

@mlabieniec
Copy link
Contributor

@magicmass did you run flutter pub get for the example app? And also did you use the cli to initialize the categories it needs i.e. auth, storage, and analytics?

@fjnoyp
Copy link
Contributor

fjnoyp commented Aug 21, 2020

@lamorltd I believe you're having a different problem, so I created a new issue mentioned above

@magicmass
Copy link
Author

Yes, I have followed the tutorial guide and completed those steps. However i still encounter this error.

@fjnoyp
Copy link
Contributor

fjnoyp commented Aug 21, 2020

Hi @magicmass can you please share your pubspec.yaml file? When did you download the example app and have you made any modifications to the project?

@fjnoyp fjnoyp added the bug Something is not working; the issue has reproducible steps and has been reproduced label Aug 22, 2020
@haverchuck
Copy link
Contributor

@magicmass Which flutter sdk version are you using?

@mlabieniec mlabieniec added core Issues related to the Amplify Core Plugin to-be-reproduced Issues that have not been reproduced yet, but have reproduction steps provided labels Aug 24, 2020
@kjones
Copy link

kjones commented Aug 27, 2020

I am seeing something similar.

  1. On Android, run the example app
  2. When the LandingPage is shown with the "Sign In" and "Sign Up" buttons, hit the back button until the Android home screen is displayed.
  3. Hit the Android app switcher button (rightmost) and return to the example app. App stays on the LoadingPage.
    Console log shows:
    E/flutter (31034): [ERROR:flutter/lib/ui/ui_dart_state.cc(166)] Unhandled Exception: MissingPluginException(No implementation found for method configure on channel com.amazonaws.amplify/core)
    E/flutter (31034): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:159:7)
    E/flutter (31034):
    E/flutter (31034): Initial Commit #1 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:334:12)
    E/flutter (31034): feat(amplify_core): initial commit for amplify-flutter #2 MethodChannelAmplifyCore.configure (package:amplify_core_plugin_interface/method_channel_amplify.dart:25:21)
    E/flutter (31034): feat(amplify_auth_cognito): initial commit for amplify_auth_cognito and amplify_auth_plugin_interface #3 Amplify.configure (package:amplify_core/amplify_core.dart:71:35)
    E/flutter (31034): Amplify analytics #4 _MyAppState._initAmplifyFlutter (package:sample_app/main.dart:61:19)
    E/flutter (31034): [RFC]: Amplify Flutter #5 _MyAppState.initState (package:sample_app/main.dart:52:5)
    E/flutter (31034): feat(amplify_analytics): initial commit #6 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4684:58)
    E/flutter (31034): Amplify analytics #7 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4520:5)
    E/flutter (31034): Initial Commit - Sample App #8 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3490:14)
    E/flutter (31034): ci: add CircleCI config for running unit tests #9 Element.updateChild (package:flutter/src/widgets/framework.dart:3258:18)
    E/flutter (31034): feat(amplify_auth_cognito): signIn, confirmSignIn, confirmSignUp and signOut #10 RenderObjectToWidgetElement._rebuild (package:flutter/src/widgets/binding.dart:1174:16)
    E/flutter (31034): feat(amplify_auth_cognito): confirmSignUp, signIn, confirmSignIn, signOut #11 RenderObjectToWidgetElement.mount (package:flutter/src/widgets/binding.dart:1145:5)
    E/flutter (31034): WIP: Readme #12 RenderObjectToWidgetAdapter.attachToRenderTree. (package:flutter/src/widgets/binding.dart:1087:17)
    E/flutter (31034): feat(amplify_auth_cognito) password management and hub events #13 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2620:19)
    E/flutter (31034): feat(amplify_auth_cognito): password management and events #14 RenderObjectToWidgetAdapter.attachToRenderTree (package:flutter/src/widgets/binding.dart:1086:13)
    E/flutter (31034): feat(amplify_storage_s3): UploadFile and GetUrl #15 WidgetsBinding.attachRootWidget (package:flutter/src/widgets/binding.dart:927:7)
    E/flutter (31034): feat(ampify_auth_cognito): credentials #16 WidgetsBinding.scheduleAttachRootWidget. (package:flutter/src/widgets/binding.dart:908:7)
    E/flutter (31034): Android unit tests analytics #17 _rootRun (dart:async/zone.dart:1182:47)

@fjnoyp fjnoyp added investigating and removed to-be-reproduced Issues that have not been reproduced yet, but have reproduction steps provided labels Aug 31, 2020
@fjnoyp
Copy link
Contributor

fjnoyp commented Sep 2, 2020

@kjones thanks for the additional context. I believe this is a separate error that needs additional investigation, please see issue: #99

@magicmass if you are getting the issue you mentioned when the app is first starting up and no interaction has occurred with the app, then the likely problem has to do with flutter. At this point, we recommend you to close your android emulator, run flutter clean, and restart the emulator.

@fjnoyp fjnoyp added pending-close-response-required The issue will be closed if details necessary to reproduce the issue are not provided within 7 days. to-be-reproduced Issues that have not been reproduced yet, but have reproduction steps provided and removed investigating labels Sep 2, 2020
@fjnoyp
Copy link
Contributor

fjnoyp commented Sep 3, 2020

Closing issue as no further details have been provided.

@magicmass if you are still facing this problem please feel free to provide more information and reopen the issue.

@fjnoyp fjnoyp closed this as completed Sep 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working; the issue has reproducible steps and has been reproduced core Issues related to the Amplify Core Plugin pending-close-response-required The issue will be closed if details necessary to reproduce the issue are not provided within 7 days. to-be-reproduced Issues that have not been reproduced yet, but have reproduction steps provided
Projects
None yet
Development

No branches or pull requests

5 participants