17

I have a cordova application. Unable to compile it after a system re-install.

I am having the error - Error:No installed build tools found. Please install the Android build tools version 19.1.0 or higher.

My profile has

export ANDROID_HOME="/home/iamkhush/Android/Sdk/tools"
export ANDROID_PLATFORM_TOOLS="/home/iamkhush/Android/Sdk/platform-tools"
export ANDROID_STUDIO='/home/iamkhush/Downloads/work/android-studio/bin/'

I have dirs with names 19.1.0 and 23.0.1 in home/iamkhush/Android/Sdk/build-tools

I have gradle 2.7 installed.

enter image description here

What else should I be looking into to resolve this? I believe I have seen all the posts similar to this, but couldnt get it working.

iamkhush
  • 2,562
  • 3
  • 20
  • 34

5 Answers5

12

Please, run the following commands.

On Windows:

cd c:\Android\android-sdk\tools\bin

Remember to replace tools path according to yours.

and then:

sdkmanager "build-tools;26.0.0"
Peter Reid
  • 5,139
  • 2
  • 37
  • 33
Thales Valentim
  • 121
  • 1
  • 3
9

You have set ANDROID_HOME incorrect in your ~/.profile. Point it just to the SDK folder.

export ANDROID_HOME="/home/iamkhush/Android/Sdk"

Also, make sure that JAVA_HOME, PATH are set correct, and /home/iamkhush/Android/Sdk have Android SDK build-tools version 19.1.0 or higher.

Let'sRefactor
  • 3,303
  • 4
  • 27
  • 43
5

Setting the environment variable ANDROID_HOME to the right directory helped me: C:\Users\roelo\AppData\Local\Android\sdk\

Yuval Pruss
  • 8,716
  • 15
  • 42
  • 67
Roelof Meijer
  • 51
  • 1
  • 1
1

make sure you have installed Android SDK build-tools version 19.1.0 properly.

Open Android SDK and check that.

Yatin Patel
  • 512
  • 7
  • 17
  • I have `build-tools version 19.1.0` and ***JAVA_HOME*** `C:\Program Files\Java\jdk1.8.0_91` ***ANDROID_HOME*** `D:\AppData\Local\Android\sdk\tools` – Devendra Singh Sep 15 '17 at 07:20
-1
  1. Set environment variable ANDROID_HOME correctly.
  2. Set JAVA_HOME variable, also the mandatory changes to PATH variable.
  3. Close terminal,open again
  4. Remove android platform
  5. Add android platform

This was the solution i found.

captain_a
  • 3,328
  • 1
  • 14
  • 23