Ionic-framework: No installed build tools found. Install the Android build tools version 19.1.0 or higher.

Created on 12 Oct 2017  路  11Comments  路  Source: ionic-team/ionic-framework

on my Mac锛宨onic build android

  • What went wrong:
    A problem occurred evaluating root project 'android'.

No installed build tools found. Install the Android build tools version 19.1.0 or higher.

but i had install build tools? How to fix it?

Most helpful comment

I struggled with this problem for hours, and finally fixed it.

  1. Please launch android studio. Then go to Preferences -> Appearance & Behavior -> System SEttings -> Android SDK. You will find "Android SDK Location".
    In my PC, it's "/Users/${user_name}/Library/Android/sdk".

  2. Go to "SDK tools" tab and check "show package details". " Android SDK build tools " will be there. Please make sure Android SDK build tools 19.1.0 or higher is installed.

  3. Edit .bash_profile, and set ANDROID_HOME as "Android SDK Location" which you found in the Android Studio.
    In my case,
    ANDROID_HOME= /Users/${user_name}/Library/Android/sdk
    export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

All 11 comments

Hello! Thank you for opening an issue with us!

The Ionic Framework issues list is designated for the reporting of bugs with the Ionic Framework or for requesting new features. As this seems like more of a support question I am going to close this issue.

I urge that you ask this question on our forum or on our slack channel.

Also, please make sure you have done the stuff shown here: https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html

Thanks for using Ionic!

I also have the same problem with my project...
SOMEBODY HELP ME PLEASE

I've the same issue.

  1. Install Android Studio (NOTE: Chose SDK location to your root dir ~/Android)
  2. Add the path to your ~/.bash_profile:
    export ANDROID_HOME=/Android/sdk export PATH=$ANDROID_HOME/platform-tools:$PATH export PATH=$ANDROID_HOME/tools:$PATH
  3. Quit your terminal and start again

Other things you might need in your bash_profile

export PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}" export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home

That's awesome! Thank you @jfbourne, it worked for me!

I struggled with this problem for hours, and finally fixed it.

  1. Please launch android studio. Then go to Preferences -> Appearance & Behavior -> System SEttings -> Android SDK. You will find "Android SDK Location".
    In my PC, it's "/Users/${user_name}/Library/Android/sdk".

  2. Go to "SDK tools" tab and check "show package details". " Android SDK build tools " will be there. Please make sure Android SDK build tools 19.1.0 or higher is installed.

  3. Edit .bash_profile, and set ANDROID_HOME as "Android SDK Location" which you found in the Android Studio.
    In my case,
    ANDROID_HOME= /Users/${user_name}/Library/Android/sdk
    export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

@marusker you're the man!

@marusker come on... you're the best

@marusker +1

Git Bash also respects the Windows system environment variables (System control panel -> Advanced system settings -> Environment Variables...). You can (and should) add ANDROID_HOME there. If you're the only user or ANDROID_HOME is not in your user folder, put it under system; otherwise, put it under user. Between the .bashrc edits and this, you really only need to do one or the other, but doing both won't hurt anything.

You can add those additional system path entries by adding %ANDROID_HOME%\tools and %ANDROID_HOME%\platform-tools to the list in Windows 10, or appending ;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools to the Path in older Windows versions.

You can test this by typing echo ${ANDROID_HOME} from Git Bash, or echo %ANDROID_HOME% from command line.

I had the same issue. Setting a system environment variable ANDROID_HOME to the proper location C:\Users\...\AppData\Local\Androidandroid-sdk fixed the issue.
Additional info: In that folder, you should have 'platforms' subfolder and there are downloads for Android SDK, for instance: folder 'android-24' is for API 24 (Android 7.0). If you are missing API you would like to use for build download additional API with SDK manager.

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

Was this page helpful?
0 / 5 - 0 ratings