![]() ![]() I've opened an issue with the Flutter team to try and understand this better and will update this answer if they come back with anything concrete. Note that once gradle 5.1.1 is being used, you can still set the plugin version back to 3.2.1 to reproduce the issue. ![]() Gradle-wrapper.properties: distributionUrl=https\:///distributions/gradle-5.1.1-all.zipīadle: classpath ':gradle:3.4.2' To upgrade to the current version, edit android\gradle\wrapper\gradle-wrapper.properties to source gradle 5.1.1, and then you're able to upgrade the gradle plugin to 3.4.2. The release notes cover some of the changes from 3.2.x => 3.3.x => 3.4.x. I don't know if Flutter officially supports this version, although it seems to work on my project here and a clean build is markedly faster. To resolve, change :gradle:3.2.1 => :gradle:3.3.2, run flutter clean and try the build again.Īccording to the gradle release notes, the current (July 2019) version of the plugin and gradle are 3.4.2 and 5.1.1 respectively. It's unclear why the Flutter boilerplate isn't more internally consistent. However, android\adle only depends on plugin version 3.2.1 ( classpath ':gradle:3.2.1'). In android\gradle\wrapper\gradle-wrapper.properties the Flutter boilerplate specifies a gradle distribution of 4.10.2, which supports a plugin version of up to 3.3.2. On account of this Windows path separators are used in the notes below. ![]() Both are up-to-date (Flutter 1.7.8 hotfix.4) and on the same versions of everything as far as I'm aware. I'm still unclear if Flutter package updates in pubspec.yaml/lock are triggering the issue, I rolled back a way but it was still present here.įor some reason this affects my Windows 10 system, but not my Mac development environment. This appears to be caused by the Flutter boilerplate specifying an old version of the gradle plugin. Plugin version 3.5.3 is current, but even version 3.5.0 should fix the issue as initially reported. A possible fix is downgrading the version of Kotlin below 1.2.71, or more sensibly, upgrading Gradle.Īs of Flutter 1.12 (stable) released on Dec 11 2019, Flutter boilerplate now includes gradle distribution 5.6.2 and plugin version 3.5.0 which will hopefully make this a historical SO question. It is possible that the root cause is using a Kotlin version which is not compatible with older versions of Gradle. ![]()
0 Comments
Leave a Reply. |