# Ionic package android fails

**URL:** <https://forum.ionicframework.com/t/ionic-package-android-fails/96470>\
**Category:** ionic-v3\
**Created:** [June 30, 2017, 5:01pm UTC](https://forum.ionicframework.com/t/ionic-package-android-fails/96470 "2017-06-30T17:01:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarWil](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@MarWil](https://forum.ionicframework.com/u/MarWil)\
**Post date:** [June 30, 2017, 5:01pm UTC](https://forum.ionicframework.com/t/ionic-package-android-fails/96470/1 "2017-06-30T17:01:04Z")

</div>

Hi all

I wanted to build a new apk and suddely I get the following error when trying to use ionic package.

```auto
id | 14
status | FAILED
platform | Android
mode | release
profile | prod
started | 2017-06-30T16:23:12.262Z
finished |

output:
ANDROID_HOME=/opt/android-sdk
JAVA_HOME=/usr/lib/jvm/java-8-oracle
Error: Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: /opt/android-sdk/tools/templates/gradle/wrapper

```

Am I doing something wrong?

I recently updated to the latest cli, ionic-angular

```auto
global packages:

    @ionic/cli-utils : 1.4.0
    Cordova CLI : 6.5.0
    Ionic CLI : 3.4.0

local packages:

    @ionic/app-scripts : 1.3.7
    @ionic/cli-plugin-cordova : 1.4.0
    @ionic/cli-plugin-ionic-angular : 1.3.1
    Cordova Platforms : android 6.1.2 browser 4.1.0
    Ionic Framework : ionic-angular 3.5.0

```

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [June 30, 2017, 5:37pm UTC](https://forum.ionicframework.com/t/ionic-package-android-fails/96470/2 "2017-06-30T17:37:45Z")

</div>

> [@MarWil](#):
>
> Am I doing something wrong?

Not searching the forum before posting 😉

> [@Ionic package - Android build error](https://forum.ionicframework.com/t/ionic-package-android-build-error/96191/5):
>
> @Sujan12, solved the problem with: cordova platform update android@6.2.3 --save Thanks!!!

---

<div class="post-metadata">

**Author:** ![MarWil](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@MarWil](https://forum.ionicframework.com/u/MarWil)\
**Post date:** [July 1, 2017, 5:25pm UTC](https://forum.ionicframework.com/t/ionic-package-android-fails/96470/3 "2017-07-01T17:25:20Z")

</div>

Haha, I checked google and github, but I’ll keep in mind to check here as well in the future!

Thanks!
