最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Flutter error while adding new dependency - Stack Overflow

programmeradmin3浏览0评论

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

Share Improve this question edited 9 hours ago JTO Informatique 34 bronze badges asked 10 hours ago AbbderahmenAbbderahmen 12 bronze badges New contributor Abbderahmen is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
Add a comment  | 

3 Answers 3

Reset to default 0

Indeed 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?
    See android\gradle\wrapper\gradle-wrapper.properties
  • What version of the AGP plugin (Android Gradle Plugin) is used?
    See android\settings.gradle, line com.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:

  1. Upgrading Gradle to version.
  2. Upgrading Gradle plugin version.
  3. Run the command ./gradlew dependencies in project's android directory which downloaded missing path_provider dependencies.
  4. Run flutter clean then flutter run.
发布评论

评论列表(0)

  1. 暂无评论