【Android】解决错误:Re-installation failed due to dif...

错误信息如下:
[2013-06-14 09:38:22 - LayoutTest] Re-installation failed due to different application signatures.
[2013-06-14 09:38:22 - LayoutTest] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2013-06-14 09:38:22 - LayoutTest] Please execute 'adb uninstall com.zhengjian.layouttest' in a shell.
[2013-06-14 09:38:22 - LayoutTest] Launch canceled!

原因:

    主要原因是ADT插件赋予APK文件debug签名时数字效验出错可能因为ADT版本不同、APK不是这台计算机生产的在模拟器或Android手机上

解决:

    方法1.这时先运行android模拟机,进入命令行,当然你要定位adb.exe的目录,
D:\adt-bundle-windows-x86-20130522\sdk\platform-tools> adb uninstall com.zhengjian.layouttest
重新运行就可以了。
    方法2.或者直接在真机中删除该程序,重新执行即可。

你可能感兴趣的:(【Android】解决错误:Re-installation failed due to dif...)