on my Mac锛宨onic build 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?
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.
export ANDROID_HOME=/Android/sdk
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/tools:$PATH
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.
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".
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.
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.
Most helpful comment
I struggled with this problem for hours, and finally fixed it.
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".
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.
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