android异常“Re-installation failed due to different ”

启动项目,控制台报如下异常
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.example" in a shell

查网上的解决方案,说是:在手机上以前装过该应用,删除之前的应用,再次装。


但问题是:查看手机上装的应用,没有装过。

查到解决方案二:

1. 找到 android sdk的安装目录下的platform-tools,例如:安装目录为 D:\android-sdk_r21.1-windows\android-sdk-windows\platform-tools.
2. 运行--cmd--找到 该目录,然后运行异常中Please execute 'adb uninstall com.example" in a shell的'adb uninstall com.example"


猜你喜欢

转载自zhangjie0919.iteye.com/blog/1852977