无法安装在Android模拟器ApiDemos示例项目 [英] Cannot install ApiDemos sample project on Android emulator

查看:174
本文介绍了无法安装在Android模拟器ApiDemos示例项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建使用Eclipse ApiDemos项目 - 新建项目 - 样品命令。试图执行它在Android仿真,我得到了安装错误。然后,我在文件管理器,打开DDMS数据/应用程序目录下,删除两个文件的名字从ApiDemos开始(可能这是不正确的,但是这已经完成)。现在,试图执行我的ApiDemos的项目,我有:

I created ApiDemos project using Eclipse - New Project - Sample command. Trying to execute it on Android emulation, I got installation error. Then I opened data/app directory in the File Explorer, DDMS, and removed two files with name starting from ApiDemos (possibly this was incorrect, but this is done already). Now, trying to execute my ApiDemos project, I have:


[2011-11-15 16:23:19 - ApiDemos] Installation error: INSTALL_FAILED_UPDATE_INCOMPATIBLE
[2011-11-15 16:23:19 - ApiDemos] Please check logcat output for more details.
[2011-11-15 16:23:19 - ApiDemos] Launch canceled!

LogCat中:

LogCat:


package com.example.android.apis signatures do not match the previously installed version, ignoring!

是否有可能现在纠正呢?我知道我可以重新创建仿真器,但我想解决这个问题,现有的模拟器,只知道应该怎么做。

Is it possible to correct this now? I know that I can re-create emulator, but I would like to solve this problem with existing emulator, just to know how it should be done.

推荐答案

您ADB命令卸载previous API演示

uninstall the previous api demos by your adb command

adb -e uninstall com.example.android.apis

而安装在你的模拟器。

which installed in your emulator.

或尝试擦除用户数据,同时启动模拟器。

or try wipe user data while launching the emulator.

这篇关于无法安装在Android模拟器ApiDemos示例项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆