[英]How to install application on SDcard mounted on android emulator?
I am trying to install my own android application on SDcard using windows platform. 我正在尝试使用Windows平台在SD卡上安装自己的Android应用程序。 First I set
首先我设定
android:installLocation="preferExternal"
in AndroidManifest.xml 在AndroidManifest.xml中
Then I launched emulator through eclipse. 然后我通过Eclipse启动了模拟器。 While creating this AVD I had given SDcard size 500 MiB and had set the SDcard support property also in AVD Manager.
创建此AVD时,我给SD卡设置了500 MiB的大小,并且还在AVD Manager中设置了SDcard支持属性。 But the error is
但是错误是
[2011-03-22 05:01:31 - SDcardDemo] Failed to install SDcardDemo.apk on device 'emulator-5554!
[2011-03-22 05:01:31-SDcardDemo]无法在设备'emulator-5554上安装SDcardDemo.apk! [2011-03-22 05:01:31 - SDcardDemo] (null)
[2011-03-22 05:01:31-SDcardDemo](空)
I also tried to install using command line. 我也尝试使用命令行进行安装。
D:\\DATA\\C\\android-sdk_r06-windows\\android-sdk-windows\\platform-tools>adb install -avd test_AVD SDcardDemo.apk
43 KB/s (14739 bytes in 0.328s) Error: Unknown option: -a
43 KB / s(0.3739s中的14739字节)错误:未知选项:-a
adb install -s [path to apk]
是解决了我的问题的命令。
goto command prompt goto命令提示符
and write 和写
adb install filename.apk 亚行安装filename.apk
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.