Comments (6)
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.
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.
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 theplugins {}
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.
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.
Okay, like commit #0984a7f (two weeks ago), the messages was changed:
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.
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)
- dexter - Android Code Search HOT 1
- Flutter 3.22.0 - color: Theme.of(context).backgroundColor
- [PAGE ISSUE]: 'What's new' HOT 1
- Fix shell command for extracting Flutter binaries in Linux HOT 1
- Fix CLI examples to not select prompts HOT 6
- [PAGE ISSUE]: 'Start building Flutter iOS apps on macOS' - unzip instructions not functioning HOT 3
- Normalize Xcode and CocoaPods install on 'Start building Flutter iOS apps on macOS' page HOT 1
- Vivo HOT 1
- [PAGE ISSUE]: 'Start building Flutter Android apps on ChromeOS' HOT 1
- [PAGE ISSUE]: 'Automatic platform adaptations'
- [PAGE ISSUE]: 'Start building Flutter Android apps on ChromeOS' HOT 1
- Explain purpose of examples in 'Handling errors in Flutter' page
- Typo on FWE 'Local caching' page
- Restore lost next steps in Getting Started pages
- [PAGE ISSUE]: 'Internationalizing Flutter apps' HOT 3
- Embed "Step by step on how to add Flutter to an existing iOS app" into "Integrate a Flutter module into your iOS project" page HOT 1
- ☂️ Update Google Maps Flutter documentation
- Resolve difference between install and PATH instructions for Linux HOT 1
- [PAGE ISSUE]: Codelabs uses wrong link to plugin codelab HOT 2
- Explain how to use EventChannels in Flutter plugins
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from website.