PhoneGap build is not updating with new code - building old version

  • 6
  • Problem
  • Updated 4 years ago
So I just realised PG Build is spitting out an old version of my app.

I changed some wording on one of the screens to make really sure I'm looking at the right version and I see the old wording.

Tried renaming the zip when I upload (added a '2' to the end of its name) - no change.

Is there anything that can cause PG Build to get 'stuck'? Any workaround for this? Other than deleting the app and recreating it?
Photo of Code Pixie

Code Pixie

  • 11 Posts
  • 0 Reply Likes

Posted 7 years ago

  • 6
Photo of ryan

ryan, Developer

  • 1538 Posts
  • 132 Reply Likes
How are you uploading the app? i.e. wich view?

Please try a different upload form, and see if it works. i.e. try
- the "Update Code" button on the summary view in the apps list
- the "Update Code" button on the app detail view
- the "Upload" button in the settings view

Let us know -- possible one of our forms is broken.
Photo of Uchitha Ranasinghe

Uchitha Ranasinghe

  • 1 Post
  • 0 Reply Likes
I am experiencing the same problem for 2 days now. The config details like the version & build numbers shows the updated values in the detailed view, however when I download the package it still has old code.

I have triggered the update code from 3 places as you suggested.

- Summary View - Does not work
- Detail View - Does not work
- Settings View - Does not work

I think the phonegap build it self is working, but the problem may be with Amazon S3 (The actual location where the package is coming from). Either the built app is not pushed to S3 (in a timely manner) or the built app is cached somewhere in the middle. (Removing browser cache didnt help as well).

The changes done yesterday is reflected in the package, but not the changes done 1 hour back.
(Currently I'm only interested on Android)
Photo of Sean Cable

Sean Cable

  • 2 Posts
  • 0 Reply Likes
I am also experiencing this problem. I tried all the upload options. I tried installing the generated .apk from the barcode scanner as well as from download.
I then tried deleting the entire app and starting with a new one from a new .zip upload.
Still stale
Photo of Sean Cable

Sean Cable

  • 2 Posts
  • 0 Reply Likes
Please disregard my previous post. I do not have the same problem. It appears my brain has room for improvement ( I was uploading from a stale directory ).
Photo of Leke Ojikutu

Leke Ojikutu

  • 2 Posts
  • 0 Reply Likes
I am having the same problem since 2 days ago.
I have tried all the update sources but it still gives me the old APK.

I have to delete the app and create it again before changes take place.
Photo of SUPAD

SUPAD

  • 3 Posts
  • 0 Reply Likes
I'm having the same issue today, everything was fine 2 weeks ago and now even if the version number shown is the one in the config, i can't get a new version of my app.
I tried :
- Hydrated
- QR Code (with uninstalling the app before)
Photo of SUPAD

SUPAD

  • 3 Posts
  • 0 Reply Likes
It is a plugman issue (app 672848), if i remove the plugin "org.apache.cordova.device", i get the latest version via hydration.
But if i put it back, i'm stuck with the version without even if hydrate see a newer version and ask for install of it.

I don't have any error on the upload&build, but if i click on the "install" button on the top right, i have both iOS and Android with errors.
Photo of SUPAD

SUPAD

  • 3 Posts
  • 0 Reply Likes
When i hit my browser back button to go on the app page, i do have this error :
""plugman install --platform android --project //app/dist --plugin //c76aaf90-3780-11e3-b094-12313d16b935 --www //app/dist/www": sh: line 7: plugman: command not found"
Photo of Suleiman Beshir

Suleiman Beshir

  • 1 Post
  • 0 Reply Likes
I've had the same problem but it was solved, I think what did it was removing the platforms/android folder since it's not needed. Perhaps someone else can confirm?
Photo of Moshe Teter

Moshe Teter

  • 1 Post
  • 0 Reply Likes
I can confirm this. had the same problem and deleting that folder worked.
Photo of dmlcreative

dmlcreative

  • 30 Posts
  • 0 Reply Likes
I'm having the same issue. Makes me feel better that it's not just me!
Photo of Phillip Wolf

Phillip Wolf

  • 4 Posts
  • 0 Reply Likes
I've been using build for some time now... after I have added a key to the Android, my code is no longer updating... resolution?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Is it updating when you remove the signing key again?
If so, do you have debugging switched off, both at PGB and possibly in your config.xml?
Photo of Phillip Wolf

Phillip Wolf

  • 4 Posts
  • 0 Reply Likes
Have removed the signing key, same result. Debugging is disabled in the config.xml and in the PGB settings. Have also tried to create a new app on PGB and upload a new ZIP, same results...
Photo of Geet

Geet

  • 11 Posts
  • 0 Reply Likes
I am facing similar issue here:
http://community.phonegap.com/nitobi/...

Please advise.
Thanks.
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Not sure why you think your issue is 'similar'. I don't think your problem has anything to do with creating a signed version for release.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Geet,
please start a new thread. Please describe your problem, as best you can. Make sure you let us know
* what your goal is
* what you have tried
* what issue you are having.
Photo of Geet

Geet

  • 11 Posts
  • 0 Reply Likes
@Jesse Monroy Thanks for responding. We have a new thread here:
http://community.phonegap.com/nitobi/...

Please have a look and let me know how can I fix it.
Thanks.
Photo of Mathias Banda

Mathias Banda

  • 5 Posts
  • 0 Reply Likes
If this is still an issue for anyone here is how to solve it:

1. Delete the current project zip
2. On the command in the project folder line run this: Cordova build
3. Now create the project zip,
4. Logon to your phonegap account, upload /update code and build

The key to making it work is is step 2
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
I'm getting "Command Cordova not found...". Also, I don't have a 'project folder'.

Would that be because I am using PGB, so I don't install and maintain Phonegap, Node, Java, SDK's, plugins and whatnot?