0

command

When I try to update a new version from server by downloading apk, then enter install it, but failed to get installed, so I used adb command to install error found pkg:

 /data/local/tmp/ntsj_2018012614.apk *
   Failure [INSTALL_FAILED_ALREADY_EXISTS]**
ישו אוהב אותך
  • 28,609
  • 11
  • 78
  • 96
uglyant
  • 95
  • 2
  • 9

1 Answers1

1

adb can't install an apk if the device already have an apk installed where the package name is the same. So, you need to remove it by using:

adb uninstall com.your.package.name

where com.your.package.name is your apk package name. Or you can use the following if you want to keep all the apk data (in case you want to update the apk):

adb uninstall -k com.your.package.name

Then you can install the apk with:

adb install yourpackage.apk

In case you don't know the package name, please read more about it at Read the package name of an Android APK

ישו אוהב אותך
  • 28,609
  • 11
  • 78
  • 96