How to create/build local app with Phonegap CLI

Rahmathullah M picture Rahmathullah M · Oct 19, 2013 · Viewed 11.9k times · Source

I'm trying to develop a Phonegap Application(Android/IOS).

I've already created 1 private app in Phonegap Build. So now I'm getting an error saying

[phonegap] detecting Android SDK environment...
[phonegap] using the remote environment
[phonegap] compressing the app...
[phonegap] uploading the app...
[error] {"error":"Private app limit reached"}

How to create public app using Phonegap CLI.

Answer

Rahmathullah M picture Rahmathullah M · Oct 22, 2013

Updated Answer

phonegap build android

or

cordova build android

For release build:

cordova build android --release

[Deprecated]

Here's the solution. It might help somebody else.

We don't have to create public app. Create an app and build it locally. In order to build the app locally using CLI, use the following command

>phonegap local build android
[phonegap] adding the Android platform...
[phonegap] compiling Android...
[phonegap] successfully compiled Android app