Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Conversation

@shihaohong
Copy link

Updates the default android SDK version to 29 to accommodate changes to gestural navigation in Android Q. See flutter/engine#10413 for desired change.

default_android_sdk_root = "//third_party/android_tools/sdk"
default_android_sdk_version = "28"
default_android_sdk_version = "29"
default_android_sdk_build_tools_version = "28.0.3"
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we update the build tools as well?

Copy link
Author

@shihaohong shihaohong Aug 6, 2019

Choose a reason for hiding this comment

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

I'm not sure which version of the build tools go with this Android SDK. Is there some resource we can reference for this? I pulled the latest version of the build tools from Android Studio once Android SDK 29 was installed

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like 29.0.2 is available now.

@dnfield
Copy link
Contributor

dnfield commented Aug 6, 2019

I asked this question on the engine PR, but for posterity - how confident are we that using 29 is safe right now?

@shihaohong
Copy link
Author

@dnfield I'm unsure how safe it is and what checks we need to have, but in an ideal world, we'd like to be able to support gestural navigation early enough that app developers can adapt their Flutter apps. When the Android SDK was previously updated, what did we do to ensure that the update was stable enough?

default_android_sdk_root = "//third_party/android_tools/sdk"
default_android_sdk_version = "29"
default_android_sdk_build_tools_version = "28.0.3"
default_android_sdk_build_tools_version = "29.0.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

Not 29.0.2?

Copy link
Author

Choose a reason for hiding this comment

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

I think the latest version of the SDK build tools is 29.0.1 - https://androidsdkmanager.azurewebsites.net/Buildtools

Copy link
Author

Choose a reason for hiding this comment

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

The platform-tools are at v29.0.2

Copy link
Contributor

Choose a reason for hiding this comment

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

Doh! You're right. Thanks!

Copy link
Contributor

@dnfield dnfield left a comment

Choose a reason for hiding this comment

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

LGTM

@shihaohong shihaohong merged commit f2bddfc into flutter:master Aug 6, 2019
@stuartmorgan-g
Copy link
Contributor

Does rolling this buildroot change into flutter/engine have coupled engine changes? I'm not able to roll the buildroot past this commit without breaking Android builds.

@shihaohong
Copy link
Author

It does have coupled engine changes, since the android sdk and its related tools (build-tools, platform-tools, etc) need to be updated that have not been made it into the engine repo yet. What is the usual process when something like this occurs? It's my first time working on the buildroot and was originally wondering about this issue as well.

@shihaohong
Copy link
Author

One solution could be to update the DEPS file in the engine change to match the SDK and tool version changes I was going to make. That way, the Android build should be fine.

@stuartmorgan-g
Copy link
Contributor

For now I'm going to roll back instead of forward. This is only an issue because the patch I landed just before this one broke the tree.

If you can roll the buildroot forward to ToT tomorrow, that will unblock the Windows changes that depend on my buildroot patches.

chinmaygarde pushed a commit to chinmaygarde/flutter_buildroot that referenced this pull request May 4, 2021
* Roll to Android SDK 29 

* Update Android SDK build-tools version to 29.0.1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants