简体   繁体   中英

How to update android app without uninstalled from device

when i try to update version in my android app to own site . The problem will be occured during the installation. that's

App not installed

An Existing package by the same name with a conflicting is already installed.

Can any one help how to download updated app without uninstall.

Thanks in advance.

you have to change both

android:versionCode="4"
android:versionName="1.0.4" 

android:versionCode is a integer, eveny update increment by 1
android:versionName can any string

and you use same Keystore

If your installing from your own site, don't increment the version code and name of new apk your uploading, use the same code and name of already existing apk, it will replace the existing one so no need to uninstall the app.

Try by enabling the "install app from unknown source" in device settings

Best way to do Even if your using the app for internal purpose you can sign the app using live keystore(not debug keystore) and upload it in your own site.

Another way to avoid getting your scenario:

If you want only some particular users to download the app that is the reason if you have hosted your app in your own site means, google provides an option to do this for testers where you can add their email in alpha testing or beta testing so that whenever you upload an apk to playstore those users who you have added will be notified and can update the app without uninstalling the existing(this wont be visible to all users who you have not added).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM