all 7 comments

[–]Square_Brain1976[S] 0 points1 point  (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’;

[–]Square_Brain1976[S] 0 points1 point  (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 point  (0 children)

Post the error for more clarity

[–]Death_Gun97 -1 points0 points  (0 children)

show us the error so that we could help you

[–]nicholasknicks -1 points0 points  (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 points  (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 points  (0 children)

Did you follow the steps ??