android adb install 错误类型解析 PartI
来源:互联网 发布:mac vi编辑器保存退出 编辑:程序博客网 时间:2024/06/06 01:06
通过USB链接PC 和 android设备, 使用命令adb -s xxx install xxx.apk, 遇到过的错误类型及解析
1. INSTALL_FAILED_MEDIA_UNAVAILABLE
安装位置不可得。 这时去到手机的shell下, adb -s xxx shell -> cd /sdcard 时, 会出现 "Permission denied"的错误。
sdcard现在处于unmounted状态。 通常插拔下usb链接, 就可以安装了。
实际上, 安装位置是可以设置的。
对于手机而言, pm get-install-location, 可以得到, 手机的安装位置设置。
pm get-install-location: returns the current install location.
0 [auto]: Let system decide the best location
1 [internal]: Install on internal device storage
2 [external]: Install on external media
另外, manifest.xml中的安装位置选项:
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="preferExternal" ... >
"If you do notdeclare this attribute, your application will be installed on the internal storage only and it cannot be moved to the external storage." as said in http://developer.android.com/guide/topics/data/install-location.html
If you declare "preferExternal", you request that your application be installed on the external storage, but the system does not guarantee that your application will be installed on the external storage.
- android adb install 错误类型解析 PartI
- android adb install 安装常见错误列表
- android adb install 安装常见错误列表
- android adb install 安装常见错误列表
- android adb install 失败的错误分析 PartII
- android adb install 安装软件常见错误列表解释
- 解决adb install 错误INSTALL_FAILED_UPDATE_INCOMPATIBLE
- Android framework analysis (partI)
- Android framework analysis (partI)
- Android adb push与 adb install简介
- Android 的adb install/ uninstall
- 我的Android进阶之旅------>Android中adb install 安装错误常见列表
- adb Install安装错误常见列表
- adb Install安装错误常见列表
- adb install 安装常见错误列表
- adb install 安装错误常见列表
- adb Install安装错误常见列表
- android-错误:refused to install the app by The ADB command !
- JS之执行环境,作用域详解
- 面试笔记5(C预处理器、作用域、static、cosnt以及内存管理)
- 函数查找一个整数数组中第二大的数
- 携程旅行网故障 携程网官网瘫痪 官方称遭不明攻击
- 面试笔记6(函数)
- android adb install 错误类型解析 PartI
- [Erlang]解决R17中文编码的问题
- 我的博客
- iOS 之UICollectionView 使用
- 面试笔记7(指针和引用)
- Android系统USR版本获取root权限
- 使用libmagic确定文件MIME类型【示例】
- 面试笔记8(类)
- iframe使用