Loading error. You need to use a different version code for your APK, because you already have version 2 code

According to this answer How to solve "Your APK version code must be above 2." in the Google Play Developer Console? I just changed the version code from 2 to 3 and it could not load the assembly.

This is my old manifest before I downloaded apk

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="mypackage name" android:installLocation="auto" android:versionCode="28" android:versionName="1.0028" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="19" /> ..... 

here is the new version code that I have to download to the Android developer console. See My manifest

 <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="mypackage name" android:installLocation="auto" android:versionCode="2" android:versionName="2.0001" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="19" /> ...... 

I do not know what's the problem. Any help? enter image description here

+97
android apk
Jul 16 '14 at 4:48
source share
15 answers
 android:versionCode="28" 

Your previous versionCode was 28. You should increase it by 1 to 29.

 android:versionCode="29" 

Presumably, your previous versions of applications were from 1 to 28. By releasing version 3, you contradict the previous version of your application that was already released with this version code.

+92
Jul 16 '14 at 4:51 on
source share

For users using Android Studio, the problem can be solved by editing versionCode and versionName in build.gradle instead of AndroidManifest.xml .

eg.

 defaultConfig { applicationId "com.my.packageId" minSdkVersion 15 targetSdkVersion 22 versionCode 2 <-- change this versionName "2.0" <-- change this } 
+189
Oct 13 '14 at 9:51
source share

if you are using an ionic infrastructure , go to the config.xml file and change the "version to widget" attribute. increase the version number. then rebuild, sign and download ur apk to play in the store. what fixed my problem.

+20
Dec 29 '15 at 16:29
source share

In my case, this is a simple problem. I downloaded the application to the console before, so I try to re-download it after solving some problems. All I do is delete the previous APK from the artifact library.

+13
Apr 25 '18 at 15:45
source share

This error appears when you try to download an APK that has the same version values ​​as the one that is already on the PlayStore.

Just change the following in the build.gradle => versionCode and versionName file

 defaultConfig { applicationId "com.my.packageId" minSdkVersion 16 targetSdkVersion 27 versionCode 2 <-- increment this by 1 versionName "2.0" <-- this is the version that shows up in playstore, remember that the versioning scheme goes as follows. first digit = major breaking changes version second digit = minor changes version third digit = minor patches and bug fixes. eg versionName "2.0.1" } 
+9
Sep 29 '18 at 20:22
source share

In Android Studio 1.1.0, change versionCode to build.gradle to Module: app and don't necessarily change versionName :

 android { ... defaultConfig { ... versionCode 3 versionName "1.0" } ... } 
+6
Apr 30 '15 at 4:58
source share

As Martin Konecny ​​said the answer , you need to change the Code version to something higher.

Your previous version code was 28 . it should be changed to 29 .

According to the document on the Android developer website. version code

An integer value representing the version of the application code relative to other versions.

Thus, it should be connected (linked by I mean above) with the previous version code, as indicated in the document:

You must ensure that each subsequent release of your application uses a higher value.

As mentioned in the document

The value of android: versionCode does not necessarily closely resemble the version of the application release that is visible to the user (see android: versionName below)

So, although this is release 2.0001 your application, this does not necessarily mean that versionCode is 2 .

Hope this helps :)

+4
Jul 16 '14 at 5:02
source share

If you are using Android Studio, you can go:

Build → Edit Flavors

And change the Version Code and Name from there.

enter image description here

+4
Mar 07 '18 at 6:04
source share

if you use phonegap / cordova applications, just edit your config.xml file and add the android version code and version to the widget.

<widget id = "com.xxx.yyy" version = "1.0.1" xmlns = "http://www.w3.org/ns/widgets" xmlns: cdv = "http: // cordova. apache.org/ ns / 1.0 "Android-VersionCode =" 100001 "version =" 1.0.1 ">

+3
Feb 10 '17 at 19:03
source share

If you are using standalone application builds with Expo, the app.json error app.json because there is only a link to the version property in the standard app.json configuration.

I was able to add the versionCode property under android as follows:

Sample application. Json

 { "expo": { "sdkVersion": "29.0.0", "name": "App Name", "version": "1.1.0", "slug": "app-name", "icon": "src/images/app-icon.png", "privacy": "public", "android": { "package": "com.madhues.app", "permissions": [], "versionCode": 2 // Notice the versionCode added under android. } } } 

Detailed documentation: https://docs.expo.io/versions/v32.0.0/workflow/configuration/#versioncode

+2
Feb 05 '19 at 11:38
source share

This is similar to the fact that you have already uploaded the APK version 3 file to the Google Play Store. And again you download apk with the same version. So this problem has arisen.

So, for the solution, you need to change your version name and version code (with step 1) and run the application once and after exporting to Google Play.

0
Jul 16 '14 at 4:54
source share

If you received this error for your Android APK APK Flutter, in your app / build.gradle file in defaultConfig {}

comment out

 versionCode flutterVersionCode.toInteger() versionName flutterVersionName 

and add

 versionCode 2 versionName "2" 

or "previous version code" + 1.

0
Sep 24 '18 at 1:25
source share

I kept getting the same error over and over again

Finally, I downloaded the apk file manually using the Google Play console, as shown in the screenshot.

In the "Application Release" section, select the "CREATE RELEASE" button shown in the screenshot and download the apk file from /android/app/bin/build/outputs/apk/release/app-release.apk

enter image description here

0
Oct 17 '18 at 11:16
source share

In my case, I had something similar in my AndroidManifest ,

  javaCompileOptions { annotationProcessorOptions { arguments = [ 'androidManifestFile': 'app\\build\\intermediates\\merged_manifests\\debug\\processDebugManifest\\merged\\AndroidManifest.xml' ] } } 

here the location of 'androidManifestFile' is wrong, change it to

 "androidManifestFile": "$projectDir/src/main/AndroidManifest.xml".toString() 

everything worked

0
Mar 04 '19 at 5:41
source share

I got the same error while loading a flutter application in the playstore. Just change the version in pubspec.yaml that works for me. maybe try to change the version from +1 to +2 or vice versa and then rebuild apk using

 flutter build apk --split-per-abi 

and download the appropriate apk that you need for your users

0
Aug 22 '19 at 10:07
source share



All Articles