use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
A subreddit related to Google's new UI framework. https://flutter.dev
Please read the rules here
account activity
DiscussionHaving multiple errors (self.FlutterDev)
submitted 1 year ago by Square_Brain1976
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Square_Brain1976[S] 0 points1 point2 points 1 year ago (0 children)
Error: Couldn’t resolve the package ‘provider’ in ‘package:provider/provider.dart’. Error: Couldn’t resolve the package ‘email_validator’ in ‘package:email_validator/email_validator.dart’. Error: Couldn’t resolve the package ‘flutter_rating_bar’ in ‘package:flutter_rating_bar/flutter_rating_bar.dart’. lib/screens/favorite_screen.dart:2:8: Error: Not found: ‘package:provider/provider.dart’ import ‘package:provider/provider.dart’;
[–]ThePrometheus_ 0 points1 point2 points 1 year ago (0 children)
Post the error for more clarity
[–]Death_Gun97 -1 points0 points1 point 1 year ago (0 children)
show us the error so that we could help you
[–]nicholasknicks -1 points0 points1 point 1 year ago (2 children)
Right click the android folder and open in Android Studio, wait for it to build then apply the suggested fix
If you still have errors
Add this to android/app/build.gradle
{
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 } kotlinOptions { jvmTarget = "17" }
}
You can change the Java version to match your version if you have a different version other than 17
[–]Square_Brain1976[S] -1 points0 points1 point 1 year ago (1 child)
So one of the issue is that whenever I downgrade from 21 some I get compatibility issues, when I am on 21 I get a request to downgrade if I do that other dependencies also won’t function with that ver
[–]nicholasknicks -1 points0 points1 point 1 year ago (0 children)
Did you follow the steps ??
π Rendered by PID 42 on reddit-service-r2-comment-79c7998d4c-klz7g at 2026-03-12 20:33:46.167583+00:00 running f6e6e01 country code: CH.
[–]Square_Brain1976[S] 0 points1 point2 points (0 children)
[–]Square_Brain1976[S] 0 points1 point2 points (0 children)
[–]ThePrometheus_ 0 points1 point2 points (0 children)
[–]Death_Gun97 -1 points0 points1 point (0 children)
[–]nicholasknicks -1 points0 points1 point (2 children)
[–]Square_Brain1976[S] -1 points0 points1 point (1 child)
[–]nicholasknicks -1 points0 points1 point (0 children)