I have installed the build tools from the Android Studio SDK like that: Tools -> SDK Manager -> Android SDK -> Android 10,11,12 in the SDK Platforms, and Adnroid SDK Build-Tools 32-rc1 in the SDK Tools tab (and a few more packages there).
And when I try to build the project I got the following error:
Caused by: java.lang.RuntimeException: No installed build tools found. Install the Android build tools version 30.0.3 or higher.
In the ~/Library/Android/sdk/
I got the build-tools directory, and there I got: 31.0.0 32.0.0-rc1
dirs.
I have also added this in the PATH:
export ANDROID_HOME=~/Library/Android/sdk
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
It all used to work until Android 12.
What am I missing? Why is it so hard to make the Android work?
For me it was just because I could not find the tab in the android studio on where to install build tools. It is actually called SDK Tools under the SDK Manager.
Click on SDK Manager
Click from the first tab SDK Platforms to SDK Tools.
SDK Tools and click on show package details and install 31.0.0
or
CTRL + ALT + S
> Appearance & BehaviorInstall (beside 32.0.0) 31.0.0 and 30.0.3 versions in the folder ~/Library/Android/sdk/build-tools (Android Studio -> tools -> SDK manager -> SDK Tools -> Show packages details and select needed versions).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With