如何在不使用 Eclipse 的情况下在 Android 上安装/替换 [英] How to install/replace on Android without using Eclipse

查看:48
本文介绍了如何在不使用 Eclipse 的情况下在 Android 上安装/替换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一个朋友给我发了一个 .apk 文件的更新版本.我的设备上已经安装了早期版本.

A buddy sent me a later version of an .apk file. I already had the earlier version on my device.

当我尝试使用 adb 安装文件时,我得到了这个:

When I tried to adb install the file, I got this:

$ adb install ../FlashLite.apk 
320 KB/s (18311 bytes in 0.055s)
    pkg: /data/local/tmp/FlashLite.apk
Failure [INSTALL_FAILED_ALREADY_EXISTS]

$ adb uninstall FlashLite.apk
Failure

$ adb uninstall /data/local/tmp/FlashLite.apk
Failure

如何从 cmd 行安装/替换?我没有源代码,所以我无法从 Eclipse 中完成.

How do you install/replace from the cmd line? I don't have the source, so I cannot do it from Eclipse.

推荐答案

在设置->应用程序->管理应用程序下从您的手机中删除旧版本,然后安装应该可以工作.

delete the old version from your phone under settings->applications->manage applications and then the install should work.

这篇关于如何在不使用 Eclipse 的情况下在 Android 上安装/替换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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