Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flutter_tools] require cmdline-tools for android licenses #82560

Merged

Conversation

jonahwilliams
Copy link
Member

Fixes #80273

The latest android studio can only run the cmdline tools version of the sdk manager. Running the platform tools version will lead to an unresolvable java.lang.NoClassDefFoundError

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label May 14, 2021
@google-cla google-cla bot added the cla: yes label May 14, 2021
@jonahwilliams
Copy link
Member Author

In order for this change to land, all of our infra recipes would need to be updated to download the cmdline-tools

@@ -262,7 +268,7 @@ class AndroidSdk {
return null;
}

String? getCmdlineToolsPath(String binaryName) {
String? getCmdlineToolsPath(String binaryName, {bool skipTools = false}) {
Copy link
Member

Choose a reason for hiding this comment

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

Is there a more specific name than skipTools for this flag? Maybe skipOldTools (supposing that I'm reading the comments in the function correctly)?

Copy link
Member

Choose a reason for hiding this comment

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

Also does the skipTools = true case have test coverage?

Copy link
Member Author

Choose a reason for hiding this comment

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

done!

@jonahwilliams
Copy link
Member Author

Made the doctor check fatal, now waiting on an update to LUCI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide helpful error message when flutter doctor --android-licenses fails
3 participants