Re-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. 检查当前项目的 SDK platform版本配置是否正确,确保与AVD的一致;
2. 完全卸载AVD上已经安装的版本
在命令行中执行adb uninstall moakap.myApp,其中moakap.myApp为要卸载的应用程序的名称。
( 执行命令之前,请确保Adnroid SDK tools目录已添加入path环境变量 
    我的电脑-> 属性 -> 高级 -> 环境变量 -> 系统变量, 在path变量中添加Adnroid SDK tools的路径,保存即可。

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

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

重新运行就可以了

 

原文链接

本文转自陈哈哈博客园博客,原文链接http://www.cnblogs.com/kissazi2/archive/2012/07/02/2572973.html如需转载请自行联系原作者


kissazi2

相关文章
|
25天前
Installation failed due to: ‘-26‘
Installation failed due to: ‘-26‘
14 2
成功解决ProxyError: Conda cannot proceed due to an error in your proxy configuration.Check for typos an
成功解决ProxyError: Conda cannot proceed due to an error in your proxy configuration.Check for typos an
成功解决ProxyError: Conda cannot proceed due to an error in your proxy configuration.Check for typos an
|
11月前
|
Python
成功解决 ProxyError: Conda cannot proceed due to an error in your proxy configuration
关掉win10的代理软件, 没有效果, 想起来代理软件会自动更改ie的代理设置
614 0
|
Shell
遇到INSTALL_FAILED_VERIFICATION_FAILURE怎么办
遇到INSTALL_FAILED_VERIFICATION_FAILURE怎么办
823 0
|
Java 应用服务中间件
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
报错解决:Reason: Failed to determine a suitable driver class
报错解决:Reason: Failed to determine a suitable driver class
2455 0
报错解决:Reason: Failed to determine a suitable driver class
|
Go iOS开发
The operation couldn’t be completed. Unable to log in with account 'myappleid'. An unexpected failure occurred while logging in (Underlying error code 1100).解决方法
The operation couldn’t be completed. Unable to log in with account 'myappleid'. An unexpected failure occurred while logging in (Underlying error code 1100).解决方法
351 0
The application could not be installed: INSTALL_FAILED_INSUFFICIENT_STORAGE
The application could not be installed: INSTALL_FAILED_INSUFFICIENT_STORAGE
427 0
The application could not be installed: INSTALL_FAILED_INSUFFICIENT_STORAGE
|
Android开发
Installation error: INSTALL_FAILED_CONFLICTING_PROVIDER 解决方案
Installation error: INSTALL_FAILED_CONFLICTING_PROVIDER 解决方案