Ionic Build Android | Error: No Installed Build Tools Found. Please Install the Android Build Tools

Gradle sync failed: No installed build tools found. Install the Android build tools version 19.1.0 or higher

You need to write the correct "Environment Variables".
See: https://developer.android.com/studio/command-line/variables

Windows:

setx ANDROID_SDK_ROOT "C:\android-sdk-windows"
setx PATH "%PATH%;%ANDROID_SDK_ROOT%\tools;%ANDROID_SDK_ROOT%\platform-tools"

Mac OS X

export ANDROID_SDK_ROOT=/<installation location>/android-sdk-macosx
export PATH=${PATH}:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools

Linux

export ANDROID_SDK_ROOT=/<installation location>/android-sdk-linux
export PATH=${PATH}:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools

Update: ANDROID_HOME is deprecated, ANDROID_SDK_ROOT is now the correct variable

How to fix no sdk build tools installed in cordova android

I had the same problem and this worked for me on my mac.

Add the path to your ~/.bash_profile ( /users/ad8kunle/.bash_profile )

export ANDROID_HOME=/Android/sdk
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/tools:$PATH

Quit your terminal and start again

Ionic Cordova Android: No usable Android build tools found. Highest 30.x installed version is 30.0.2; minimum version required is 30.0.3

Today, I could finally install version 30.0.3.

In Android Studio, I could see and install it from here...

Sample Image

After this, and then also having to remove the whitelist plugin (it is not required any more), I could get it to build.

Only hassle now is it outs to a .aab and not an .apk so side load testing now harder. But the main issue, the building is now working (on Windows PC).. Now hopefully can do the same on the Mac.



Related Topics



Leave a reply



Submit