adb INSTALL_FAILED_UPDATE_INCOMPATIBLE

Error running the project with Eclipse today:

LOG:

[2018-05-09 14:16:19 - Module_Android_Demo] ------------------------------
[2018-05-09 14:16:19 - Module_Android_Demo] Android Launch!
[2018-05-09 14:16:19 - Module_Android_Demo] adb is running normally.
[2018-05-09 14:16:19 - Module_Android_Demo] Performing com.example.module_android_demo.MainActivity activity launch
[2018-05-09 14:16:19 - Module_Android_Demo] Automatic Target Mode: using device '736be0cf'
[2018-05-09 14:16:19 - Module_Android_Demo] Uploading Module_Android_Demo.apk onto device '736be0cf'
[2018-05-09 14:16:20 - Module_Android_Demo] Installing Module_Android_Demo.apk...
[2018-05-09 14:16:21 - Module_Android_Demo] Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE
[2018-05-09 14:16:21 - Module_Android_Demo] Please check logcat output for more details.
[2018-05-09 14:16:21 - Module_Android_Demo] Launch canceled!

Solution:

Step 1: Delete the existing APK with the same package name, such as: adb shell rm system/app/OutdoorMeter/ OutdoorMeter.apk

Step 2: Delete the directory of the package name of the application in the data /data/ directory, such as: adb shell rm -rf data/data/com.runbo.outdoormeter/

Step 3: Restart the Android phone adb reboot

Step 4: Reinstall the APK

--------------------------------------------》

Not actually solved. . .

to be continued. . . May 9, 2018 17:27:57

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326352759&siteId=291194637