installation failed due to different application signatures.

问题:
在虚拟设备上运行程序时提示安装失败。
[2010-08-08 00:38:30 - myApp] Re-installation failed due to different application signatures.
[2010-08-08 00:38:30 - myApp] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2010-08-08 00:38:30 - myApp] Please execute 'adb uninstall moakap.myApp' in a shell.
[2010-08-08 00:38:31 - myApp] Launch canceled!
 
原因分析:
要安装的应用程序的SDK版本和现有的AVD上已安装的版本不同,导致安装失败。
 
解决方法:
1. 检查当前项目的Android SDK platform版本配置是否正确,确保与AVD的一致;
2. 完全卸载AVD上已经安装的版本
在命令行中执行adb uninstall moakap.myApp,其中moakap.myApp为要卸载的应用程序的名称。
( 执行命令之前,请确保Adnroid SDK tools目录已添加入path环境变量
    我的电脑-> 属性 -> 高级 -> 环境变量 -> 系统变量, 在path变量中添加Adnroid SDK tools的路径,保存即可。

 
 
总结:
确保项目的platform版本与创建的AVD版本一致。

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wwsspw.html