Skip to content

android: download pinned platform-tools - #10809

Draft
accumulator wants to merge 1 commit into
spesmilo:masterfrom
accumulator:android_pinned_platform_tools
Draft

android: download pinned platform-tools#10809
accumulator wants to merge 1 commit into
spesmilo:masterfrom
accumulator:android_pinned_platform_tools

Conversation

@accumulator

Copy link
Copy Markdown
Member

platform-tools is actually not used, but pulled in by gradle/AGP. Google's repo XML only ever advertises the single newest revision. So when AGP's auto-installer resolves it, it can only install "latest".

Adding android.builder.sdkDownload=false to gradle.properties inhibits platform-tools download, and without it we still get a successful build.

pre-installing (older) platform-tools does avoid gradle/AGP downloading the newest version.

platform-tools is actually not used, but pulled in by gradle/AGP.
Google's repo XML only ever advertises the single newest revision. So
when AGP's auto-installer resolves it, it can only install "latest".

Adding `android.builder.sdkDownload=false` to `gradle.properties`
inhibits platform-tools download, and without it we still get
a successful build.

pre-installing (older) platform-tools does avoid gradle/AGP downloading
the newest version.
@accumulator
accumulator marked this pull request as draft August 6, 2026 12:35
@accumulator

Copy link
Copy Markdown
Member Author

pre-installing (older) platform-tools does avoid gradle/AGP downloading the newest version.

Seems that is not true, android.builder.sdkDownload=false apparently needed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant