I made a tool for generating those license hashes you need for downloading the Android SDK packages from Gradle.
Here it's hooked up for the android-sdk-license
license.
Go to the tool (it's implemented as a CyberChef recipe)
Because otherwise I'd have to fiddle with some sort of JAVA_HOME
variable on my computer to run sdkmanager.
Or I could open up Android Studio if I have 20 minutes to spare.
If you're reading this from the future, Google has probably moved that stuff to a different place in the tree, moved that stuff then to a different repo, and long the way made a ton of empty and stale branches to throw you off their trail.