# Ionic run android failed, error gradle line 64

**URL:** <https://forum.ionicframework.com/t/ionic-run-android-failed-error-gradle-line-64/26790>\
**Category:** ionic-v1\
**Created:** [June 20, 2015, 8:58am UTC](https://forum.ionicframework.com/t/ionic-run-android-failed-error-gradle-line-64/26790 "2015-06-20T08:58:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![eldy](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/eldy/32/71764_2.png) [@eldy](https://forum.ionicframework.com/u/eldy)\
**Post date:** [June 20, 2015, 8:58am UTC](https://forum.ionicframework.com/t/ionic-run-android-failed-error-gradle-line-64/26790/1 "2015-06-20T08:58:57Z")

</div>

previously I can compile but after I updated my cordova something happened. I got this error when I run ionic run android in my CI :

```
FAILURE: Build failed with an exception.

* Where:
Script 'C:\Users\Jay\testproject\platforms\android\CordovaLib\cordova.grad
le' line: 64

* What went wrong:
A problem occurred evaluating root project 'android'.
> No installed build tools found. Please install the Android build tools version
 19.1.0 or higher.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

```

What could be the problem here? 😢

---

<div class="post-metadata">

**Author:** ![encodedmirko](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/encodedmirko/32/84116_2.png) [@encodedmirko](https://forum.ionicframework.com/u/encodedmirko)\
**Post date:** [June 20, 2015, 9:14am UTC](https://forum.ionicframework.com/t/ionic-run-android-failed-error-gradle-line-64/26790/2 "2015-06-20T09:14:04Z")

</div>

> [@eldy](#):
>
> Please install the Android build tools version 19.1.0 or higher.

Upgrade your Android SDK tools using the [SDK Manager](https://developer.android.com/tools/help/sdk-manager.html).

---

<div class="post-metadata">

**Author:** ![eldy](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/eldy/32/71764_2.png) [@eldy](https://forum.ionicframework.com/u/eldy)\
**Post date:** [June 20, 2015, 9:47am UTC](https://forum.ionicframework.com/t/ionic-run-android-failed-error-gradle-line-64/26790/3 "2015-06-20T09:47:56Z")

</div>

I already did. I even have higher version of SDK. Previously everything was working.

---

<div class="post-metadata">

**Author:** ![encodedmirko](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/encodedmirko/32/84116_2.png) [@encodedmirko](https://forum.ionicframework.com/u/encodedmirko)\
**Post date:** [June 20, 2015, 10:04am UTC](https://forum.ionicframework.com/t/ionic-run-android-failed-error-gradle-line-64/26790/4 "2015-06-20T10:04:18Z")

</div>

So what’s inside the `build-tools` folder where you’ve installed the Android SDK?

---

<div class="post-metadata">

**Author:** ![saiy2k](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@saiy2k](https://forum.ionicframework.com/u/saiy2k)\
**Post date:** [June 20, 2015, 10:31am UTC](https://forum.ionicframework.com/t/ionic-run-android-failed-error-gradle-line-64/26790/5 "2015-06-20T10:31:51Z")

</div>

Had the same problem with Android SDK Build tools version 20.  
Installing version 19.1 along with it, resolved the issue.

 ![image](https://global.discourse-cdn.com/ionicframework/original/2X/0/04a76244c7bc03f3934e8f98ea4f815849977e82.png)

---

<div class="post-metadata">

**Author:** ![rodrigoguariento](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rodrigoguariento/32/120378_2.png) [@rodrigoguariento](https://forum.ionicframework.com/u/rodrigoguariento)\
**Post date:** [August 23, 2018, 1:28pm UTC](https://forum.ionicframework.com/t/ionic-run-android-failed-error-gradle-line-64/26790/6 "2018-08-23T13:28:57Z")

</div>

Do you have **~/Android/Sdk/build-tools** and **$ANDROID\_HOME/build-tools**?

I faced a similar problem. After I’ve installed Android Studio, my **build-tools** was installed only in **~/Android/Sdk/build-tools** (declared in my $PATH too), but the MyIonicProject/platforms/android/CordovaLib/cordova.gradle was trying to get **build-tools** path from **$ANDROID\_HOME** (in my case $ANDROID\_HOME is in **/opt/android-studio** ), and **build-tools** directory wasn’t here.

I solved it creating a symbolic link:

```auto
$ ln -s ~/Android/Sdk/build-tools $ANDROID_HOME/build-tools

```

Ensure yourself that you are linking using the same user and group of files in the target directory.
