question

jaimel avatar image
jaimel asked jaimel answered

APK's versionCode error

I have updated the versionCode on both locations of the APK, the grade file and the manifest with the same value, when I try to upload a new APK into the production portal I keep getting the same error, can somebody assist?

Clover Android SDK
1 comment
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

The error is

Oops! Invalid File!

You must increment your APK's versionCode every time you upload. If you are testing and want to get around this, please side-load your app.

0 Likes 0 ·
jaimel avatar image
jaimel answered
David, that worked, so I was changing the wrong gradel file, how can I get the new APK approved and download to the terminal that we have on our office?
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

David Marginian avatar image
David Marginian answered David Marginian commented

Can you provide us with your App id in a moderator's only post?

2 comments
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

ER.......P6

0 Likes 0 ·

What is the versionCode in the manifest of the file you are trying to upload?

0 Likes 0 ·
jaimel avatar image
jaimel answered David Marginian converted comment to answer

grade:

defaultConfig {
    versionCode 5
    versionName "5.0"
  minSdkVersion MIN_SDK_VERSION
  targetSdkVersion TARGET_SDK_VERSION
}
manifest:
android:versionCode="5"
android:versionName="5.0"
15 comments
10 |2000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

The versionCode in our database is 32,000.

0 Likes 0 ·
jaimel avatar image jaimel David Marginian ♦♦ ·
David, where is that value in the project?, I have not been able to locate that value.
0 Likes 0 ·
I took the SDK example project as a template to create our own, so that value was there by default, but normally in other apps that I created the versionCode is always in the manifest and now in the gradel file. But I can not find that value of 32.000 anywhere.
0 Likes 0 ·
Show more comments

Welcome to the
Clover Developer Community