-
Notifications
You must be signed in to change notification settings - Fork 247
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
MissingPluginException when following trip planner tutorial #2583
Comments
@nabram sorry you are having this issue with the tutorial. I could not reproduce this exception but I wanted to ask some followup questions to ensure I'm not missing something relevant:
|
Hi @ragingsquirrel3 - I just updated my flutter today. I tried running the program and still had issues. I've attached what you're looking for now. 1. Flutter doctor readout
2. AQI List
3. amplifyconfiguration.dart
4. Module where the issue occurred###I was at the end of module 2. I was trying to run test the authentication and received the error that the plugins were not added. 5. SourceIt's currently not but if there's still issues, I'm happy to upload it to git |
@nabram Based on the following two lines from the log:
The exception is being thrown when trying to add the Auth plugin. You can see where that log/exception comes from in Amplify below. amplify-flutter/packages/amplify/amplify_flutter/lib/src/method_channel_amplify.dart Lines 64 to 71 in 7bcaa09
I notice in the code you provided above, you have a try/catch around
|
I have the await Amplify.addPlugins function in the main.dart that I provided in the first question. I'll repaste the main.dart
Edit: I'd also like to add that I did not have this issue until I updated Android SDK. I don't know if that has anything to do with it. |
Hello @nabram - Can you let us know if you are still facing this issue? I think @ragingsquirrel3 had spent some time trying to reproduce this and was unsuccessful. |
@nabram - I am going to close this out since I have not heard back. If you are still facing this issue, please let us know. |
Hello Jordan, I am also a beginner working on the trip planner aws amplify tutorial but I am encountering different problems. One at the end of part 1 and the other at the end of part 2 when I run flutter Here's prroblem 1: build.gradle def localProperties = new Properties() def flutterRoot = localProperties.getProperty('flutter.sdk') def flutterVersionCode = localProperties.getProperty('flutter.versionCode') def flutterVersionName = localProperties.getProperty('flutter.versionName') apply plugin: 'com.android.application' android {
} flutter { dependencies { Problem 2: The name 'MyApp' isn't a class. Launching lib/main.dart on sdk gphone64 arm64 in debug mode... FAILURE: Build failed with an exception.
BUILD FAILED in 7s my public.yaml name: amplify_trips_planner publish_to: 'none' # Remove this line if you wish to publish to pub.dev version: 1.0.0+1 environment: dependencies: dev_dependencies: flutter: flutter doctor ! Doctor found issues in 1 category. amplifyconfiguration.dart const amplifyconfig = '''{ main.dart import 'package:amplify_trips_planner/trips_planner_app.dart'; Future main() async { runApp( Future _configureAmplify() async { Please how can I resolve these? |
@ieakpoveta - Please up grade to the latest version of amplify flutter. If you are still facing issues with the tutorial, feel free to open an issue and fill out the details in the issue template. |
@ieakpoveta I had the same issue, try updating all amplify_* dependencies to ^1.0.0 and then go_router to ^6.5.5. This resolved my issue and the tutorial should be updated as well. @Jordan-Nelson |
Thanks. We are working on updating the tutorial. |
Issue created from comment on #2551.
Comment
Hi Jordan - I actually have a very similar issue. I'm following an AWS tutorial, which up until today, after I updated my Android SDK, I haven't had too much of an issue.
Here's my stuff - I'm a beginner at this so I might have messed something up, but it had been working fine until today.
Here's my main dart file
And here is the app file
Finally, here are the dependencies:
Thanks so much
Originally posted by @nabram in #2551 (comment)
The text was updated successfully, but these errors were encountered: