Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE的报错的解决方法
2015-08-11 15:36
288 查看
在项目文件下:AndroidManifest.xml文件中增加一行代价就行了。
如:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="xxx"
android:installLocation="preferExternal" ------增加这行代码!
android:versionCode="1"
android:versionName="1.0" >
android:installLocation.通过设置该属性可以使得开发者以及用户决定程序的安装位置.
如:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="xxx"
android:installLocation="preferExternal" ------增加这行代码!
android:versionCode="1"
android:versionName="1.0" >
android:installLocation.通过设置该属性可以使得开发者以及用户决定程序的安装位置.
android:installLocation可以设置为"auto"、"internalOnly"、"preferExternal"三个值中的任何一个.
auto:程序可能被安装在外部存储介质上(例如:SD Card),但是默认会被安装到手机内存中.当手机内存为空时,程序将被安装到外部存储介质上.当程序安装到手机上后,用户 可以决定把程序放在外部储介质还是内存中.
internalOnly:默认值.当设置为该值时,程序只能被安装在内存中,如果内存为空,则程序将不能成功安装.
preferExternal:将程序安装在外部存储介质上,但是系统不保证程序一定会被安装到外部存储介质上.当外部存储介质不可以或空时,程序将被安装到内存中.程序使用了for ward-locking机制时也将被安装到内存中,因为外部存储不支持此机制.程序安装后,用户可以自由切换程序应该在外部还是内部存储介质上.
相关文章推荐
- Leetcode -- Container With Most Water
- Leetcode#11||Container With Most Water
- 172 Factorial Trailing Zeroes
- HDU 1532 Drainage Ditches
- SmtpClient发邮件时为什么用MailMessage.From而不用MailMessage.Sender
- MDK __main过程分析
- 树形DP - hdu5293 Tree chain problem
- HDU - 4630 No Pain No Game (线段树 + 离线处理)
- Binder与AIDL服务
- **深入浅出的事件路由(view hit test)**
- leetCode #217 Contains Duplicate
- HDU 4819 Mosaic D区段树
- sleep和wait区别
- windows 2012 R2 DHCP FailOver
- commons-mail报错,提示EmailException: Sending the email to the following server failed
- 不依赖sendmail和postfix发邮件
- HDU 1082 Matrix Chain Multiplication
- 《实体解析与信息质量》 - 3.1.3 Algebraic模型
- mdadm彻底删除software RAID
- GenyMotion报错An error occured while deploying a file.INSTALL_FAILED_INVALID_URI