I develop in ionic 2 and I'm trying to open the project (from ionic android build) in Android Studio.
I get the following error:
Error:No installed build tools found. Please install the Android build tools version 19.1.0 or higher.
The problem is the Build Tool is already installed:
I'm using the latest version of cordova with ionic2.
Any thoughts?
You should refer
doFindLatestInstalledBuildTools
method in cordova.gradle file:Obviosly,
getAvailableBuildTools()
returns empty array:In my case,
System.getenv("ANDROID_HOME")
returned wrong path ingetAndroidSdkDir()
method, so the solutions are:System.getenv("ANDROID_HOME")
with your real Android SDK path (but you should remember that SDK location differs on other PCs)$ANDROID_HOME
environment variableYou can set build tool version manually in
build.gradle
files and skip calling methods described above (be sure to setup it for all the modules in the app):android { buildToolsVersion "your_version_here" }
I had similar issue. I fixed it by changing the Project structure as follows: