2

Phonegap应用程序未安装在真实设备上LG500

错误是:Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

有什么建议吗?

4

5 回答 5

4
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.
于 2014-12-02T12:36:57.950 回答
3

如果已安装,请从您计划安装的设备中删除该应用程序,然后重试。

于 2012-09-05T06:10:44.993 回答
0

这太愚蠢了,但在我的情况下,问题如下:有足够的可用磁盘空间来存储应用程序,但我的主屏幕上没有可用的“空间”来容纳图标 - 网格中的所有地方都已满. 我通过在主屏幕上添加一个新的“页面”来解决这个问题,以便有空间容纳应用程序图标。

花了我几个小时来解决 - 使用带有 Android 4.1.2 的三星 Galaxy S2

于 2014-02-14T13:01:14.590 回答
0

在您的 Android Manifest 中,只需<manifest ... android:installLocation="preferExternal"...>添加<manifest>标签

于 2014-07-28T21:33:55.233 回答
0

从 temp 目录中删除 Cordova android 包有助于:

  • adb shell rm /data/local/tmp/android-debug.apk

或者,您可以查看目录中还有哪些其他包并尝试删除发布版本,例如:

  • adb shell ls /data/local/tmp/

  • adb shell rm /data/local/tmp/android-release-unsigned.apk

于 2015-10-16T06:24:56.047 回答