change version of app when updating on google developer - android

I uploaded my app on google developer market, and I decided to update the app because I made some changes on it, but it gives this error message:
Upload failed
You need to use a different version code for your APK because you already have one with version code 1.
how can I change the version of the app?

Open manifest and
do this
android:versionCode="2"
android:versionName="1.1"**

this is set up either in your build.gradle file or in your manifest

Change your Manifest file
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xxx.xxx"
android:versionCode="8"
android:versionName="xxx-xxxxx-2-v1" >
Here VersionCode you have to change.

Related

Android Instant App in different project/branch

I have a normal installable app on my git main branch. Now I want to create an Instant version of that game on a branch. I have done everything as described here. And at version-codes it also says:
It's OK to develop your instant app and your installable app in two separate Android Studio projects.
This is, I guess, the same as having a separate branch.
This is what I have changed:
AndroidManifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.my.app.package"
xmlns:dist="http://schemas.android.com/apk/distribution"
android:targetSandboxVersion="2">
<dist:module dist:instant="true" />
<application ...>
<meta-data android:name="com.google.android.gms.instant.flavor" android:value="1337"/>
...
</application>
</manifest>
The targetSandboxVersion, dist:module and the meta-data.
In build.gradle I have added implementation "com.google.android.gms:play-services-instantapps:17.0.1" and set versionCode to 1.
But when I upload the app bundle it says that versionCode 1 is already used. But according to the quote above I think it should be possible to upload a bundle that only has the instant version. Am i doing something wrong?
For Instant App use version code lower than the version code of the standard/not-instant app.
It allows install of the standard version from the Instant version.
If you already have uploaded standard version, increase it's version code to eg. 100 and re-upload the standard version. Than use version code lower than 100 for the instant app.
Make sure app-bundle or apk with specific version code was not already uploaded, this includes also apk-s and bundles unsuccessfully uploaded and includes all versions of the app, both standard and instant.

Android: Failure [INSTALL_FAILED_VERSION_DOWNGRADE], but version is already higher than published

guys!
I'm trying to update my android app, but I get this error message:
Upload Error Message
When I try to run the app on my device, I get this error:
Failure [INSTALL_FAILED_VERSION_DOWNGRADE]
You're trying to install apk with a lower versionCode that is already installed.
Either uninstall an app or increment the versionCode.
I have already increased the version code in AndroidManifest.xml (see code's first line below) and still get the same error.
<manifest android:hardwareAccelerated="true" android:versionCode="10101" android:versionName="1.1.1" package="com.ionicframework.fitme375349" xmlns:android="http://schemas.android.com/apk/res/android">
This app is an ionic project.
Any help? Don't know what else to do.
Guys!
Thanks for the help and support.
In some moment I set the version to 1.0.638 in Ionic config.xml. The androidManifest.xml generated had the versionCode 100638. When I increased the version in ionic config file to 1.0.639, the versionCode in AndroidManifest file was set to 10639 (don't know why). This is why I got the error in Google Play. After trying many different version numbers, I finally set the version in Ionic config file to 10.0.639 and the versionCode generated in AndroidManifest.xml was 100639. This version was accepted in google play.
Dont forget to change in app level build.gradle file.
You have to increase the app version code every time you made an update.
make the version code to 10102
<manifest android:hardwareAccelerated="true" android:versionCode="10102" android:versionName="1.1.1" package="com.ionicframework.fitme375349" xmlns:android="http://schemas.android.com/apk/res/android">

Android - Google Play - Upload APK

I uploaded my first app to Google Play some weeks back, and everything works fine. However I have an update and need to push it to Google Play. I've done research and found that I needed to add the following to my manifest file:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.shouttag.mothership"
android:versionCode="2"
android:versionName="1.1" >
However, when I try to upload the signed APK file, I keep getting the dreaded "You need to use a different version code for your APK because you already have one with version code 1." error. Is this because in the first version, I didn't have the versionCode or versionName attributes?
Any guidance on how I can resolve this sitch?
If you're using Android Studio, make sure to also change the version in the build.gradle.

how to publish an update to application on the android market?

I already have an application on the android market and now I want to upload an update to that application.
I have made the new application with the same package name, I have incremented the version code and name , I have signed with the same key-store...etc. Now I want to know how to publish an update.
Do I upload the update as a separate application? or how else do I do it?
EDIT: Does the apk name need to be same as the previous version? I mean if my apk name for the original version is abc.apk can my update name be xyz.apk?
You need to upload your new app as the same app as previous version except you need to increment the version number in manifest xml.
So if you have manifest file like following:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
. . .
</manifest>
You will need following:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="2"
. . .
</manifest>
#knoguchi is rite.
for that you should:
1) Unpublished app from market(Your published apk can't delete it will be deactive only.)
2) after that in you Latest menifest add
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="1.0"
. . .
</manifest>
You will need following:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="2"
android:versionName="1.1"
. . .
</manifest>
3) And sign again your apk from eclipde->Android tools->Export singed application package-> sign it->
4) Upload that Apk to market.
Hope it will help.
Might be too late but:
Once you're logged into the Android market for publishers, click on your app under "All Android Market listings", and click on the tab "APK files".
Then you need to deactivate the current published apk version (click on "deactivate"), upload your new APK (click on "upload APK"), activate it (click on "activate"), and click on "save".
You don't need to unpublish-publish at all (if all you want to do is update your apk).
So, you don't need to upload your app as a new app, you just update the existing one.
Note: You can't delete the older versions of your apk, they're staying there for you to be able to reactivate one of them is need be.
To upload an update first of all make changes in Android Manifest as described in other answers.
Then go to Home screen of Google Play Developer Console. Click on app whose update you have to upload in "All Applications" section. On left panel list, there will be options for APK, Store Listing, Pricing and Distribution,etc.
Go to APK section. There in center you will find button "Upload new APK to Production".
Thats It! Upload your new version of App and click Publish.

app installations overwriting each other

I have developed two android apps...when i install them on my phone to test them.. they overwrite each other. I do not want this to happen. The intent is to have both installed on the phone as separate apps.. how do i fix this? I developed them with eclipse.
I had the same problem despite the fact that package names were different between both APKs.
At the end I had to modify a GRADLE file:
\app\build.gradle
the following line:
applicationId "name.to.change"
In Android Studio 3 you will find this configuration in:
I had the same issue, turned out that I had copied one project to another to save time, and the package setting in the Manifest tag inside the AndroidManifest.xml file was the same for both apps.
Once I changed this and resolved any imports errors, the apps stopped overwriting one another on the phone.
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="xxx.yyy"
android:versionCode="1"
android:versionName="1.0" >
Do the apps share the same namespace? Verify that they have their own packages in Eclipse.
also share the same user id, modify it in the manifest.

Categories

Resources