Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

project does not compile #308

Open
someUser-afk opened this issue Feb 9, 2025 · 1 comment
Open

project does not compile #308

someUser-afk opened this issue Feb 9, 2025 · 1 comment

Comments

@someUser-afk
Copy link

I pulled this project to complete MDC-101, tried to compile it and got an error:

What went wrong:
Failed to apply plugin class 'Dependency_version_checker_gradle$FlutterDependencyCheckerPlugin'.
> Error: Your project's Kotlin version (1.6.10) is lower than Flutter's minimum supported version of 1.7.0. Please upgrade your Kotlin version.

I've tried to fix it myself, but error are just multiplying. please, update the project or tell me how to do it myself

flutter analyze --suggestions says that everything is fine

@someUser-afk
Copy link
Author

solved by following this:

  1. change ext.kotlin_version to 1.7.10 in build.gradle
  2. change com.android.tools.build:gradle:7.1.2 to com.android.tools.build:gradle:8.1.0 in the same file
  3. another build.gradle file inside the app folder, add namespace = "com.example.shrine" to the top of android section
  4. flutter pub get
  5. flutter pub outdated
  6. flutter pub upgrade --major-versions

I do not think it is the best way to fix it, I'd like a professional opinion and update of this repo

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant