Rahmathullah M
Rahmathullah M

Reputation: 2716

How to create/build local app with Phonegap CLI

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.

Upvotes: 7

Views: 12176

Answers (3)

Rahmathullah M
Rahmathullah M

Reputation: 2716

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

Upvotes: 10

Divyaadz
Divyaadz

Reputation: 175

The command phonegap local <command> has been DEPRECATED

Instead please try this command "cordova build android"

Upvotes: 3

Dom
Dom

Reputation: 2569

Phonegap Build allows you to have 1 private app. In order to have more private app's, you would need to pay for a service plan. You can however have multiple public app's. To have a public app, you need to host your code in Github. Once it is there, you can create a public app here on the "open-source" tab.

Upvotes: 0

Related Questions