r/mAndroidDev • u/Both_Accident_8836 • Feb 03 '26
Lost Redditors đ If we do not specify buildToolsVersion in build.gradle.kts, then how does the build decide which Build Tools version to use?
Hi folks
i dont know this question where i ask. which channel?
I have a conceptual question about Android Build Tools selection.
If we do not specify buildToolsVersion in build.gradle.kts, then how does the build decide which Build Tools version to use?
For example:
Gradle wrapper = 8.14.3
- Android Gradle Plugin (AGP) =
8.13.2 compileSdk = 36
Is the Build Tools version:
- derived from
compileSdk? - constrained by the AGP version?
- or simply the latest installed & compatible Build Tools chosen dynamically by AGP at runtime?
Also, is this why Android Studioâs Storage Analyzer canât always mark a Build Tools version as âusedâ unless buildToolsVersion is explicitly defined?

4
Upvotes
30
u/Remarkable_Font Feb 03 '26 edited Feb 03 '26
Everytime you click build, it asks lord Jake which build tools version is the right one for the Job.
This is also why you should use flubber, no need to bother the lord everytime you build just do a hOt rEstArt.
10
u/mopeyjoe Feb 03 '26
a call is made to an asyncTask which eventually returns the right value.
10
u/dejvo Feb 03 '26
Android plugin 3.0.0 (2017) Behavior changes:
https://developer.android.com/build/releases/agp-3-0-0-release-notes#behavior_changes
10
u/Fair-Degree-2200 null!! Feb 03 '26
Depends on the phase of the moonÂ
7
u/khsh01 Feb 03 '26
Depends on what time it is.