2012-11-05 28 views
0

对我有在设备不够到位的问题在这里的情况。我一直在寻找这个问题的答案在这里,发现安静很多的答案,这是不能接受的,因为:
1.他们都在谈论模拟器,在我的情况下,它的真实测试设备
2.社区建议增加存储,所以不会再有这样的消息 - 我所做的是我删除了设备中的几个应用程序/游戏,所以它有所帮助,但是从eclipse直接运行到设备后,消息开始再次出现。安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE - 设备

正如开头的应用程序(APK)上传到设备中,然后安装,我想蚀着删除以前的应用程序(APK),所以它不断复制新的不删除旧的。有没有什么办法来清理这个apks,或者我认为完全错误。
帮助。
谢谢,非常抱歉,如果答案是在这里的某个地方,我没有找到它。

+0

重新安装应用程序确实这是由你的应用程序产生不干净的数据解决。您的应用程序在设备上是否创建了大量数据?然后清除设置中的应用程序数据。顺便说一句,你检查了你的手机是否有中继没有存储空间或如果这是一个错误? –

+0

@Christian S. 我的应用程序不会创建任何其他数据。它是10 MB。是的,我的手机在内部存储上确实没有可用空间,所以我所做的是我删除了几个应用程序,但它一直在充满,所以我不能删除手机中的所有内容。 – Daler

回答

2
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.packagename.appname" 
android:versionCode="1" 
android:versionName="1.0" 
android:installLocation="preferExternal"> 

它得到了通过这种方式

+0

通过上面的代码片断,它肯定会将应用程序存储在SD卡中,或者它只会**喜欢**来这样做。 –

0
You need to do two things after which this error will be resolved. 

1. In your AndroidManifest.xml file add android:installLocation="preferExternal" within your manifest  tag. 

<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.packagename.appname" 
android:versionCode="1" 
android:versionName="1.0" 
android:installLocation="preferExternal"> 

2. More importantly, clear the cache data in your device. Goto settings -> storage -> click on cached data. This will clear the cache and free the space. 

3. Reconnect your device, clean your project and again run it on the device. The project will now run on your device.