导入Android SDK中Sample下ApiDemos报错的解决办法

 

今天突然想看下Sample下面Google为我们提供的例子是在么写的,就选了歌例子导入,谁知导入后没错,运行的时候出先了下面的错误:

[2011-09-21 11:01:52 - ApiDemos] Re-installation failed due to different application signatures.

[2011-09-21 11:01:52 - ApiDemos] You must perform a full uninstall of the application. WARNING: This will remove the application data!

[2011-09-21 11:01:52 - ApiDemos] Please execute 'adb uninstall com.example.android.apis' in a shell.

[2011-09-21 11:01:52 - ApiDemos] Launch canceled!

第一反应是上网查,但是没查到,正不知道该在么解决的时候突然看到这句

Please execute 'adb uninstall com.example.android.apis' in a shell.

于是抱着试一试的心态在CMD下面执行了adb uninstall com.example.android.apis

然后回去运行,成功了!!!

 具体操作步骤如下:

  • 出现警告后保持虚拟机打开的状态
  • cd [SDK安装目录]\ platform-tools
  • adb uninstall com.example.android.apis
  • 然后重新运行ApiDemos
  • ApiDemos主菜单出现

个人觉得这个ApiDemos很值得研究下,推荐大家在闲的时候多看看Google提供给我们的例子。

更多相关文章

  1. Android面试题集锦之Service生命周期
  2. Android项目集成ReactNative及遇到问题
  3. Android之Action_SEND小例子
  4. Activity之间传递 List对象
  5. Android获取CPU频率和温度
  6. 如何把批量数据导入到android 的 sqlite 数据库(更新中)
  7. 运行时动态注销在AndroidManifest.xml声明的BroadcastReceiver,En
  8. 导入一个android项目报错的解决办法
  9. Android(安卓)APK 签名(图)

随机推荐

  1. android使用webview加载flash文件
  2. Android(安卓)设计一个可单选,多选的Demo
  3. 2010.12.10(4)——— android MapView 处
  4. (转)Android软键盘弹出,界面整体上移
  5. Android(安卓)单元测试cmd 命令集
  6. Android: HowTo设置app不被系统kill掉
  7. Android(安卓)中的全局变量
  8. android之壁纸相关
  9. 运行linux命令
  10. android如何正确获取iccid,特别是中间带有