在安裝APK文件時出現類似INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES的提示,同時類似的提示如下:
Android Launch!
adb is running normally.
Performing com.android123.CWJ activity launch
Automatic Target Mode: using device 'HT840GZ25974'
Uploading CWJ.apk onto device 'HT840GZ25974'
Installing CWJ.apk...
Application already exists. Attempting to re-install instead...
Re-installation failed due to different application signatures.
You must perform a full uninstall of the application. WARNING: This will remove the application data!
Please execute 'adb uninstall com.android123.CWJ' in a shell.
Launch canceled!
這樣的問題主要是簽名沖突造成的,比如你使用了ADB的debug權限簽名,但后來使用標准sign簽名后再安裝同一個文件會出現這樣的錯誤提示,解決的方法除了只有先老老實實從手機上卸載原有版本再進行安裝,而adb install -r參數也無法解決這個問題。