If you build has failed, set your
If you are still having problems, the post a message WITH DETAILS!!
Don't just say,"it's not working".
Otherwise PhoneGap 6.0.0 Now Available on Build
Read the blog, IT IS NOT THE DEFAULT.
If you switch over you will be using
- iOS: 4.0.1
- Android: 5.1.0
- Windows: 4.3.0
Jesse
phonegap-version=5.2.0 in your config.xml AND try again.
If you are still having problems, the post a message WITH DETAILS!!
Don't just say,"it's not working".
Otherwise PhoneGap 6.0.0 Now Available on Build
Read the blog, IT IS NOT THE DEFAULT.
If you switch over you will be using
- iOS: 4.0.1
- Android: 5.1.0
- Windows: 4.3.0
Jesse
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
Posted 4 years ago
JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
If posting something like this, Jesse, please make sure you make no errors, otherwise we'd soon have more confused denizens instead of less.
This is wrong:
phonegap-version=5.2.0
This is correct:
This is wrong:
phonegap-version=5.2.0
This is correct:
<preference name="phonegap-version" value="cli-5.2.0" />JesseMonroy650 (Volunteer), Champion
- 3325 Posts
- 122 Reply Likes
Thanks for the correction.
- 329 Posts
- 12 Reply Likes
Right now PGB doesn't feel too well. HTTP error 504 and stuff.
- 329 Posts
- 12 Reply Likes
The problems seem to be clearing up. Positive results with 6.0.0 so far.
- 329 Posts
- 12 Reply Likes
Detected problem with 6.0.0: The generated version code appears to be lower than previous, so Google Play doesn't allow me to upload. It doesn't show which code was generated.
Update: Solved by setting android-versionCode to above the one previously auto-generated. This actually also affected 5.2.0, so something must have been changed in the building system. Due to Gradle?
Update: Solved by setting android-versionCode to above the one previously auto-generated. This actually also affected 5.2.0, so something must have been changed in the building system. Due to Gradle?
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
Yes. Gradle adds a digit for whatever reason, which is a known problem.
https://github.com/phonegap/build/iss...
Several threads about this feature' on this forum, already.
https://github.com/phonegap/build/iss...
Several threads about this feature' on this forum, already.
- 329 Posts
- 12 Reply Likes
That wasn't the whole problem. Previous version codes were auto-generated (seemingly arbitrarily) despite me stating one manually.
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
Not arbitrarily. It was the running build number, which is displayed at your app's page.
Exactly that caused problems when developers deleted, then re-uploaded their app from their PGB account. In such cases, the running build number started at '1' again, which meant that the versionCode must be specified in config from then on.
Then, when gradle was introduced for PGB, the "additional digit" caused trouble because the versionCode was drastically increased each time (the problem then only arose when returning to 'ant', which respects the specified - now too low - value of the versionCode attribute).
Exactly that caused problems when developers deleted, then re-uploaded their app from their PGB account. In such cases, the running build number started at '1' again, which meant that the versionCode must be specified in config from then on.
Then, when gradle was introduced for PGB, the "additional digit" caused trouble because the versionCode was drastically increased each time (the problem then only arose when returning to 'ant', which respects the specified - now too low - value of the versionCode attribute).
- 329 Posts
- 12 Reply Likes
Well, the build number I got via e.g. cordova-plugin-appversion was quite different from what Google Play got, so I didn't make that connection. On the other hand, it always returns 1 for iOS, so maybe the plugin is broken.
- 329 Posts
- 12 Reply Likes
What cordova-plugin-appversion reports as build number is now android-versionCode + "8".
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
Exactly. That's what Gradle produces, for whatever reason - Ant doesn't, and what Google then uses.
- 15 Posts
- 0 Reply Likes
Thing is, PGB is broken (build outputs HTML of a 500 error page to the console, 50x on upload), even if you do set the older preference.
Not a good day.
Not a good day.
- 329 Posts
- 12 Reply Likes
Yup. I've had that too during the day, but I succeeded making a release between the stops.
Petra V., Champion
- 7794 Posts
- 1391 Reply Likes
Seems like this doesn't happen to everyone, so there must be something special in your assets/config.
If your zip is available on a public place somewhere, you might want to post its URL so I can have a look if you wish.
If your zip is available on a public place somewhere, you might want to post its URL so I can have a look if you wish.
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers



