INSTALL_FAILED_UPDATE_INCOMPATIBLE when trying to install apk

0

I'm having this problem when installing on my phone a new version of an Android application that I'm building and, from what I've already researched, can be easily solved by uninstalling the old application and installing the new one. However, if I do this I will lose the old app data, which I did not want. Would you have any way to solve this problem without losing existing data?

    
asked by anonymous 02.01.2018 / 14:47

1 answer

1

Depending on the set of responses in INSTALL_FAILED_UPDATE_INCOMPATIBLE when I try to install compiled .apk on device >

This message means that the application is already installed:

  

Failure [INSTALL_FAILED_UPDATE_INCOMPATIBLE]

This may occur because you may have installed the application in another way, or installed via root or via playstore, you can try to uninstall via adb:

adb uninstall <nome do pacote>

Or you can uninstall by your own phone, go to Settings > Apps and select your App and click Uninstall

  

LatestversionsofAndroidjustdragtheAppandatthetopofthescreenUninstall(orUninstall)appears:

  

    

Note:IfonlyRemoveappears,itmeansthatyoucannotuninstall

Wouldyouhaveanywaytosolvethisproblemwithoutlosingexistingdata?

Therearesome,butiftheproblemoccursatalltimesyoushouldcheckwhatishappening,probablytryingtoinstalltheappbydifferentmeans,oryourADTisoutdated.

  

Note:IfonlyRemoveappears,itmeansthatyoucannotuninstall

  • ClickSetting

  • GotoBackup&sync:

      

  • TurnonthebackupbyclickingON(ifitisoff):

      

  • ClickBackupAll

Oryoucanuseanapplicationlike:

02.01.2018 / 15:25