Skip to content

Conversation

@jakobr-google
Copy link
Contributor

Android Studio is heavily pushing the Gradle wrapper when you open our projects in Studio. It's also pushing an upgrade to the gradle plugin, which requires Gradle 3.3. However, Studio ships with Gradle 3.2, so if you choose to upgrade, the project will not build.

Using the gradle wrapper makes Studio happier, so let's update our new project template to use it.

We could also update our build.gradle to require v2.3.1 of the Android Gradle plugin, so Studio won't prompt to upgrade the dependency for us, but I've left that for another change.

Fixes #9842.

@jakobr-google jakobr-google requested a review from mit-mit May 8, 2017 14:35
Copy link
Contributor

@abarth abarth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please do not check in binary files, such as gradle-wrapper.jar.

I'm also skeptical about the gradlew shell script. For example, what happens when that file changes?

@mit-mit
Copy link
Member

mit-mit commented May 8, 2017

I'll share some context on this change in a few hours

@Hixie
Copy link
Contributor

Hixie commented May 8, 2017

Before we add more files to the template, I think we should make sure the template contains a README that documents, for each file in the template:

  • What the file is for
  • Why you would edit that file
  • How to verify that the edits are valid
  • How to test the file

The template is growing really big and it's not at all clear why some of these files are part of the user code and not just part of the framework.

@mit-mit
Copy link
Member

mit-mit commented May 10, 2017

Some additional notes are available in go/gradlenotes

@iNoles
Copy link
Contributor

iNoles commented May 10, 2017

You could do gradle wrapper to generate gradle wrapper. It supposed to take gradle version from the wrapper function in a build.gradle.

@Hixie
Copy link
Contributor

Hixie commented May 24, 2017

This is being tracked in #10236.

Should we close this PR for now, since it seems this is not going to land as-is?

@mit-mit
Copy link
Member

mit-mit commented May 24, 2017

We can close this PR, yes, but lets track the work in the existing bug #9842, please

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android Studio updated gradle version of my project and now flutter run fails

6 participants