android Re-installation failed due to different application signatures.

转自:http://263229365.iteye.com/blog/1328188

Re-installation failed解决方法

  使用Eclipse+ADT开发调试Android软件时你会发现安装一个apk文件出错,出现类似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.Demo' in a shell.的错误,主要原因是ADT插件赋予APK文件debug签名时数字效验出错可能因为ADT版本不同、APK不是这台计算机生产的在模拟器或Android手机上,
 
解决方法:
一)可以直接在真机中删除该程序,重新执行即可。
二)在shell中直接adb uninstall <package name>后重新安装。
 
下面是在第二种方法的说明:
android调试是出现:Re-installation failed due to different application signatures
我是在导入已经存在的项目时出现的错误Re-installation failed due to different application signatures

调试信息如下:
[2011-06-09 10:08:37 - ApiDemos] Re-installation failed due to different application signatures.
[2011-06-09 10:08:37 - ApiDemos] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2011-06-09 10:08:37 - ApiDemos] Please execute 'adb uninstall com.example.android.apis' in a shell.
[2011-06-09 10:08:37 - ApiDemos] Launch canceled!

在网上查是这样的:

这时先运行android模拟机,并在cmd内运行,当然你要定位adb.exe的目录,我是放在E:\android\android-sdk-windows\platform-tools 下

E:\android\android-sdk-windows\platform-tools> adb uninstall com.example.android.apis.

重新运行就可以了

 

你可能感兴趣的:(android)