如何在Android模拟器上安装的SD卡上安装应用程序? [英] How to install application on SDcard mounted on android emulator?

查看:249
本文介绍了如何在Android模拟器上安装的SD卡上安装应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Windows平台在SD卡上安装自己的Android应用程序。首先我设置

I am trying to install my own android application on SDcard using windows platform. First I set

android:installLocation = preferExternal

在AndroidManifest.xml中

in AndroidManifest.xml

然后我通过eclipse启动了模拟器。创建此AVD时,我给SD卡设置了500 MiB的大小,并且还在AVD Manager中设置了SDcard支持属性。但是错误是

Then I launched emulator through eclipse. While creating this AVD I had given SDcard size 500 MiB and had set the SDcard support property also in AVD Manager. But the error is


[2011-03-22 05:01:31-SDcardDemo]
无法安装SDcardDemo.apk在
设备上的模拟器-5554上! [2011-03-22
05:01:31-SDcardDemo](空)

[2011-03-22 05:01:31 - SDcardDemo] Failed to install SDcardDemo.apk on device 'emulator-5554! [2011-03-22 05:01:31 - SDcardDemo] (null)

我也尝试使用

D:\DATA\C\android-sdk_r06-windows\android-sdk-windows\platform-工具> adb安装-avd test_AVD SDcardDemo.apk


43 KB / s(14739字节,0.328s)错误:
未知选项:-a

43 KB/s (14739 bytes in 0.328s) Error: Unknown option: -a


推荐答案

adb install -s [apk的路径]
是解决了我问题的命令。

adb install -s [path to apk] is the command which solved my problem.

这篇关于如何在Android模拟器上安装的SD卡上安装应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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