真机测试INSTALL_FAILED_INSUFFICIENT_STORAGE 的解决方法

来源:互联网 发布:久其DNA培训源码 编辑:程序博客网 时间:2024/05/21 09:56

来源:http://blog.csdn.net/aikongmeng/article/details/9793809

INSTALL_FAILED_INSUFFICIENT_STORAGE 的解决方法

今天用真机测试,如果已经安装了该应用程序,重复安装会出现

[2014-08-21 18:26:46 - Android_NDK_OpenCV] Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE
[2014-08-21 18:26:46 - Android_NDK_OpenCV] Please check logcat output for more details.
[2014-08-21 18:26:46 - Android_NDK_OpenCV] Launch canceled!

解决方法1:直接在手机上面卸载该APK

解决方法2试试修改一下manifest文件 :添加一句: 
android:installLocation="preferExternal"

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.example.ndk_opencv"
    android:installLocation="preferExternal" 
    android:versionCode="1"
    android:versionName="1.0" >

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

修改下安装位置 就OK了. 

使用模拟器测试的,则可以试一试:

进入到模拟器中,点击settings->applications->mange

applications-> select the application->select “uninstall”,将启动的软件删除掉,下次就可以成功启动。

0 0
原创粉丝点击