[flutter_tools] Fix for Unsupported Android Plugin version.#46260
[flutter_tools] Fix for Unsupported Android Plugin version.#46260slightfoot wants to merge 1 commit intoflutter:masterfrom
Conversation
|
This pull request was opened against a branch other than master. Since Flutter pull requests should not normally be opened against branches other than master, I have changed the base to master. If this was intended, you may modify the base back to dev. See the Release Process for information about how other branches get updated. Reviewers: Use caution before merging pull requests to branches other than master. The circumstances where this is valid are very rare. /cc @dnfield |
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie. Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
|
This probably needs a unit test |
|
Marking for consideration as release blocker. cc @tvolkert |
|
I don't think it's a release blocker since we don't expect folks to upgrade Gradle/Android Gradle plugin on their own. We also need to make sure that those components are compatible with the Flutter Gradle plugin. This AGP version might work, but generally speaking we want to have test for each version that we support. |
| return '5.6.2'; | ||
| } | ||
| throwToolExit('Unsuported Android Plugin version: $androidPluginVersion.'); | ||
| if (Version.parse(androidPluginVersion) > Version.parse('3.5.0')) { |
There was a problem hiding this comment.
maybe just return '5.6.4' and remove this check and throwToolExit. Finally, update the unit test.
|
This definitely needs a test. Also, are we sure this is a release blocker? How common do we expect this failure mode to be? |
|
I don't think this should be a release blocker. We need to do testing to make sure this all plays nicely. It's not on our default templates yet and using it may have other problems that need to be vetted out. We should definitely fix this but it should really go through a longer cycle on dev/beta before being brought into the release. |
|
I'll trust you all for making the right call on release blocker or not.
A better tag at this point might be "hotfix candidate", perhaps?
…On Sat, Dec 7, 2019 at 6:23 AM Dan Field ***@***.***> wrote:
I don't think this should be a release blocker. We need to do testing to
make sure this all plays nicely. It's not on our default templates yet and
using it may have other problems that need to be vetted out.
We should definitely fix this but it should really go through a longer
cycle on dev/beta before being brought into the release.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#46260?email_source=notifications&email_token=AARWL67GDCB2VHOMZGRPLALQXOWWXA5CNFSM4JXDBNGKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGGH4CA#issuecomment-562855432>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AARWL63FQVMV2NK22GCXCNLQXOWWXANCNFSM4JXDBNGA>
.
|
|
@blasten is this PR still relevant? |
|
I think so. @slightfoot are you still interested in working on this PR? |
Sure. |
|
In my case this is happening when I run when I disable those line, I try to build the release apk using android studio, by opening maybe it can help you tracing the error. additional note:
Another note: didn't fix the issue |
|
turn out the problem is occur too when try to run on android,
|
|
I filed #49438. This will likely involve updating the Gradle version in the template as well. |
|
I'm also facing the same issue. |

Build getting a weird error since upgrade:
Unsuported Android Plugin version: 3.5.2Tracked it down to this line:
flutter/packages/flutter_tools/lib/src/android/gradle_utils.dart
Line 203 in 4f54e46
According to the comments above the function the details for this compatibility was from https://developer.android.com/studio/releases/gradle-plugin#updating-gradle which clearly states 3.5.0+ requires gradle version 5.6.4. This is not what is in the dart code for the flutter tool and so the latest android plugin/studio builds 3.5.1 to 3.5.3 are not compatible with the latest hotfix branch of the tool.