PhoneGap build appears to lag behind git version of app.

  • 1
  • Problem
  • Updated 9 years ago
  • Solved
Even though it reports the correct commit hash for the app, when I run the built application on Android, it's an older version of the app. I've made sure I uninstalled the app first as well.
Photo of lucian.branescu

lucian.branescu

  • 6 Posts
  • 0 Reply Likes

Posted 9 years ago

  • 1
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
It's getting the commit hash from the local copy stored on our servers, so the code has definitely been fetched. It sounds like either the app hasn't been automatically rebuilt, or you've downloaded a cached version.

What's the id of the app you're working on?
Photo of lucian.branescu

lucian.branescu

  • 6 Posts
  • 0 Reply Likes
12539

But I deleted it and added it again since I needed an .apk. That made it work.

PG build did show the app being rebuild, and then provided downloads. Perhaps a cached version somewhere.
Photo of Andrew Lunny

Andrew Lunny

  • 1911 Posts
  • 199 Reply Likes
Yeah that's what it sounds like - hopefully the new code is being pushed to right places when it should be.
Photo of Jon Mason

Jon Mason

  • 5 Posts
  • 0 Reply Likes
I have same problem with Blackberry - phonegap build shows com.hoozyu.hMobile at 0.0.2 but when I download (after any number of refreshes on the BB) I get the previous version 0.0.1. The updated file went through the whole queuing process. I cleared thehistory, passwords, cache and pushed content and cookies on the BB three times, rebooted - I still get the out of date version. Is something being cached or not rebuilt at the server end?
Photo of James Ivings

James Ivings

  • 19 Posts
  • 1 Reply Like
I've had this problem a few times. I assumed the download was being cached in my browser or somewhere. Solved by deleting the project and re-creating.
Photo of Jon Mason

Jon Mason

  • 5 Posts
  • 0 Reply Likes
yes, I got there too, but a bit painful if you have to delete the project every time you want to upload changes
Photo of James Ivings

James Ivings

  • 19 Posts
  • 1 Reply Like
It doesn't always happen. And before a couple of weeks ago you had to do that anyway when using a zip file. So not that much of a pressing issue.