简体   繁体   English

安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE Android Phonegap

[英]Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE Android phonegap

Phonegap app is not installing on real device LG500 . Phonegap应用未在真实设备LG500上安装。

Error is: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE 错误是: Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE

Any suggestion ? 有什么建议吗?

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.

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

This is so dumb, but in my case the problem was the following: There was enough free disk space to store the app, but there was no free 'space' on my home screen to fit the icon - all places in the Grid are full. 这太蠢了,但是在我的情况下,问题出在以下地方:有足够的可用磁盘空间来存储应用程序,但是主屏幕上没有可用的“空间”来容纳图标-网格中的所有位置都已满。 I solved this by adding a new 'page' to the home screen, so that there is space to fit the app icon. 我通过在主屏幕上添加新的“页面”来解决此问题,以便有足够的空间容纳应用程序图标。

Took me a few hours to solve - Using an Samsung Galaxy S2 with Android 4.1.2 花了我几个小时解决-在Android 4.1.2上使用Samsung Galaxy S2

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

Removal of the Cordova android package from the temp directory helped: 从temp目录中删除Cordova android程序包有助于:

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

Alternatively you can see which other packages are in the dir and try to remove a release build for example: 或者,您可以查看目录中还有哪些其他软件包,并尝试删除发行版,例如:

  • adb shell ls /data/local/tmp/

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM