So recently i have set up Flutter
in my computer everything works if i run the app however once i added the supabase
to the dependencies i get this error i have no clue how to fix it . please if someone have any idea or had my same problem i would be glad if you contact me thank you
the error message:
i found that i had to update my gradle-wrapper.properties
file depends on the compatibility matrix but it didn't work still shows the same error
So recently i have set up Flutter
in my computer everything works if i run the app however once i added the supabase
to the dependencies i get this error i have no clue how to fix it . please if someone have any idea or had my same problem i would be glad if you contact me thank you
the error message:
i found that i had to update my gradle-wrapper.properties
file depends on the compatibility matrix but it didn't work still shows the same error
3 Answers
Reset to default 0Indeed this type of error is often linked to a Java / Gradle / AGP version incompatibility.
Can you run the following command from the root of the Flutter project to do a first check:
flutter analyze --suggestions
- What version of Gradle is used?
Seeandroid\gradle\wrapper\gradle-wrapper.properties
- What version of the AGP plugin (Android Gradle Plugin) is used?
Seeandroid\settings.gradle
, linecom.android.application
- Possibly the version of Java that Flutter uses:
flutter doctor -v
See the "Android toolchain
" section
Look at this here https://github/flutter/flutter/issues/39814#issuecomment-528775495. It says you should:
- Upgrading Gradle to version.
- Upgrading Gradle plugin version.
- Run the command
./gradlew dependencies
in project's android directory which downloaded missing path_provider dependencies. - Run
flutter clean
thenflutter run
.