2
votes

I am developing Android application using Ionic framework (Ionic is built on top of Apache Cordova). When I try to build my app, I get an error, which states that build tools are missing.

Error:

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

I am using windows, and I have Android SDK tools installed (at C:\tools), also I have used sdkmanager to install platform-tools (at C:\platform-tools) and android26 and android27 platforms (at C:\platforms\android-26 and C:\platforms\android-27).

My ANDROID_HOME enviroment variable is set to C:\tools and I have included all of the following locations in my path:

  • C:\tools
  • C:\tools\bin
  • C:\platform-tools
  • C:\platforms

I believe I am missing something, what do I have to do/fix for my build to succeedd. What are those build tools that I do not have installed?

1
It is not complaining about not finding your SDK. It is complaining about not finding build tools version 19.1.0. So open android studio and open your SDK Manager --> press SDK Tools -> press show package details -> look for 19.1.0 (or higher) and pick one, or more -> press ok -> resync - sansa
hmm I would use the sdkmanager.bat since android.bat is deprecated - sansa
it is located in your sdk-path/tools/bin/sdkmanager.bat - sansa
yeah that is correct but it should work without "" - sansa
Also, it would benefit you to have everything in one folder instead of being spread out all over your C drive, so put everything in C:\SDK and change your paths whenver you have time - sansa

1 Answers

3
votes

You have set "ANDROID_HOME" to your sdk tools folder. This is causing an error in the relative navigation used by Cordova.

Solution: Create a new folder "SDK" in your C drive as such C:\SDK. Now add all of the sdk stuff into that directory. Finally, change your "ANDROID_HOME" path to C:\SDK