android - 安装错误 : INSTALL_FAILED_INSUFFICIENT_STORAGE Android phonegap

标签 android cordova

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

错误是:安装错误:INSTALL_FAILED_INSUFFICIENT_STORAGE

有什么建议吗?

最佳答案

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.

关于android - 安装错误 : INSTALL_FAILED_INSUFFICIENT_STORAGE Android phonegap,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12275385/

相关文章:

cordova - Phonegap : Set base href but still Include local JS/CSS/Images

javascript - navigator.camera 在 AngularJS/Cordova 项目中未定义

ios - 在构建 : GoogleCloudMessaging. h 时,phonegap-plugin-push 错误 65 已弃用。我们可以从项目中删除它吗?快速解决?

html - iOS 9 中屏幕导航的设备位置路径错误

android - GCC 6.3 警告常量 '0' 与 bool 表达式的比较始终为 false

java - 尝试交换 Activity 时应用程序崩溃

android - 自定义微调器对齐和宽度的问题

java - 在android中使用java访问Phonegap SQLite数据

android - 等待在 Android 应用程序中的触发器中创建的文档

Android 设备在 Ubuntu 下的 Eclipse 中不可见