Code Monkey home page Code Monkey logo

Comments (6)

parlough avatar parlough commented on August 31, 2024

Thanks for the issue. I'm not familiar with this area, so I'll defer to others :)

Could you let us know your Flutter version and setup by sharing the output of flutter doctor --verbose?

@bartekpacia Do you have any ideas here? Perhaps this older migration guide needs to link somewhere else, mention another file, or include another potential solution?

from website.

bartekpacia avatar bartekpacia commented on August 31, 2024

Thanks for the ping @parlough :)

The Flutter Fix (and the migraton guide) should also mention the newer, modern place where Kotlin version is configured - in the android/settings.gradle file, in the plugins {} block, as explained here, eg:

plugins {
    id "dev.flutter.flutter-plugin-loader" version "1.0.0"
    id "com.android.application" version "8.3.1" apply false
    id "org.jetbrains.kotlin.android" version "1.9.22" apply false
}

from website.

Bizarrus avatar Bizarrus commented on August 31, 2024

The Flutter Fix (and the migraton guide) should also mention the newer, modern place where Kotlin version is configured - in the android/settings.gradle file, in the plugins {} block, as explained here, eg:

So the definition of the version no longer runs via the variable ext.kotlin_version, but directly as mentioned in the plugin section as Depencies?

From which version is this behavior like this?
There is no information on this.

Perhaps you should adapt the warning message and the URL referred to there to this effect, as this simply leads to misunderstandings: you are searching for the variable to death.

This is very confusing, especially for new flutter developers like me: You install the very latest version and start with it, but you get old error messages that have to be handled completely differently in the current version. Especially here, you don't think about the fact that you have to fall back on a migration guide because you are using the latest version.

from website.

bartekpacia avatar bartekpacia commented on August 31, 2024

I'm sorry for your bad experience. It's a huge project and when some part is updated (as in this case), it's hard to know about all the other places where it's referred. Thanks for reporting it.

So the definition of the version no longer runs via the variable ext.kotlin_version, but directly as mentioned in the plugin section as Depencies?

This is correct.

From which version is this behavior like this?

I think since Flutter 3.16. To see how default Gradle buildscripts differ across Flutter versions, take a look at this issue. If you have generated your project with an older version of Flutter, it's advisable to upgrade your buildscripts to the newest form.

If you have any further problems let me know, I'll do my best to help.

from website.

Bizarrus avatar Bizarrus commented on August 31, 2024

Okay, like commit #0984a7f (two weeks ago), the messages was changed:

https://github.com/flutter/flutter/blob/74b65d4e4c6190fedd76e02c83196688ac149467/packages/flutter_tools/lib/src/android/gradle_errors.dart#L448-L454

I think, the changes are currently not on the VS Code-Plugin.

My Version is:

Flutter 3.19.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 300451adae (2 weeks ago) • 2024-03-27 21:54:07 -0500
Engine • revision e76c956498
Tools • Dart 3.3.3 • DevTools 2.31.1

from website.

bartekpacia avatar bartekpacia commented on August 31, 2024

I think, the changes are currently not on the VS Code-Plugin.

FYI, this is unrelated to Flutter VSCode plugin.

The bug is inside flutter_tools package, which is basically the flutter command-line program.

from website.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.