Graham Tilson
Graham Tilson

Reputation: 113

phonegap build android does nothing

I have a phonegap CLI application that until recently was working fine and I was able to publish to the Google play store in alpha testing mode.

So in the www directory I did a 'phonegap build android' and in the platforms/android directory I did an 'ant release' to create a signed release apk.

I've been forced to upgrade my phonegap version, as the Google play store rejected my latest submission as they no longer supported the level I was using (I think it was 3... something).

So, now when I do a 'phonegap -v' I get 5.3.6.

When I'm in the www directory and do a 'phonegap build android --verbose' I get:

[phonegap] executing 'cordova build android --verbose'...

[phonegap] completed 'cordova build android --verbose'

With no time at all between the first line and the second line, no verbose output and no apk output!

Any idea what could be going wrong?

Thanks

Graham

Upvotes: 5

Views: 4636

Answers (3)

AFwcxx
AFwcxx

Reputation: 471

Since none of the solution here worked for me with the same problem. Had to figure it out myself. The problem was that i've upgraded npm to accomodate the latest Node.js that i'm using. With the new version of the npm (since the api version changed), cordova could not find the new resources. Therefore, you had to remove cordova and reinstall it again. Or just upgrade Cordova if yours is not up to date.

npm install -g cordova

should do it.

Upvotes: 0

Max Vargas
Max Vargas

Reputation: 406

I had the same problem and tried many different settings without success. Since I cannot spend much time on this, I resorted to create a new Adobe Id, then create a new Phonegap Build project, and build from the cloud. Now, build and execution of my Phonegap project is possible.

Please note this is a workaround for those of us in a hurry. Hope this helps.

https://build.phonegap.com

Upvotes: 0

c4software
c4software

Reputation: 96

Its seems related to NodeJS 5.0... In my case the Cordova Build command seems to be failling since the update.

After some investigation its look like you can by pass the problem by running the "build script" in your platform/build folder

./platforms/android/cordova/build

Upvotes: 8

Related Questions