Ionic Package: Error building in ionic cloud getting error Might need to update your Android SDK

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

Why am I keep getting this error? I am building in cloud aren’t they supposed to look after the things like Android SDK and Java

Ionic package: error when building in ionic cloud
Ionic Package Service: Android build fails
(Scroll down to “Business and Customer Support”)


i update ionic CLI this night . and now i have the same problem. Worked fine before the last update !


+1, ionic package was working this morning but now we’re getting this error.


+1 too have this error


So did you all report it at the URL I posted?


Yes Sujan. I opened a ticket, but they haven’t replied yet.

Android build on fails

It works now. You have to update to the last recent cordova android platform (6.2.3)

cordova platform update android@6.2.3 --save

The ionic team gave that feedback to me after I reported the bug.


still doesn’t work for me even after updating cordova :confused:

global packages:

    @ionic/cli-utils : 1.4.0
    Cordova CLI      : 7.0.1 
    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.2.3
    Ionic Framework                 : ionic-angular 3.3.0


    Node       : v6.10.0
    OS         : Linux 4.4
    Xcode      : not installed
    ios-deploy : not installed
    ios-sim    : not installed
    npm        : 3.10.10 


+1 doesn’t work after updating platform android@6.2.3.


Again, the info is missing if you told the Ionic team about it already.


Does your config.xml contain the following entry?

<engine name="android" spec="~6.2.3" />

After using “–save” this entry was added to my config.xml. This might be important for the cloud package service.


thank you, this worked for me! :+1:


I had to manually add the line <engine name="android" spec="~6.2.3" /> into the config.xml file. (for some reason using “–save” did not automatically add the entry for me… Not sure why it didn’t though… but after adding that line, the build worked! Thanks @echle!!!


Does anyone had this problem using the Ionic cloud package service ?


All of the people posting here had this problem with Ionic Package - this is a thread about a problem with Ionic Package,


Worked for me too…


thank you, this worked for me!


Worked for me! Thank you


Running cordova platform update android@6.2.3 --save worked for me!