Android Question Can't change version code?

alexwekell

Member
Licensed User
Longtime User
Since I've upgraded to 3.82 I cannot create an apk with a new version code. The B4A project file shows that I can save with a new version code, but I still keep getting an error when uploading the APK that I am using the same version code in this case.

In this case

Old version (14) -> Update to work with Android L -> Change version code to (15) -> B4A saves version code -> Create .APK -> Error, you need to change the version code to something above 14

Another user suggested activating an older .APK and then trying to upload the new one, but that is not possible either due to this reason:

This configuration cannot be published for the following reason(s):

  • It is forbidden to downgrade devices which previously matched version 14 to version 13, which would occur when
    API levels in range 4+ and
    Screen layouts containing any of [small, normal, large, xlarge] and
    OpenGL ES versions in range 2.0+ and
    Features containing all of [android.hardware.LOCATION, android.hardware.location.GPS, android.hardware.location.NETWORK, android.hardware.screen.PORTRAIT, android.hardware.TELEPHONY, android.hardware.TOUCHSCREEN].
 

aaronk

Well-Known Member
Licensed User
Longtime User
In the Activity called 'Main', up the very top is this where you changed the version number ?
 
Upvote 0

alexwekell

Member
Licensed User
Longtime User
Ah! That was it.

Have you checked: Do not overwrite manifest file option?

Unchecking this fixed it.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…