Android studio+真機 運行報錯[INSTALL_FAILED_INSUFFICIENT_STORAGE]解決方法

Android studio+真機 運行報錯[INSTALL_FAILED_INSUFFICIENT_STORAGE]解決方法


說明:Android手機 OPPO r5 root版本,Android 4.4.4
Android studio在真機上運行Android工程,報錯 [INSTALL_FAILED_INSUFFICIENT_STORAGE]


解決方法:
    修改 AndroidManifest.xml 文件,在<manifest xmlns:android="http://schemas.android.com/apk/res/android"

    package="com.example.huichang.logintest" > 中加入:android:installLocation="preferExternal"

    如:

    <manifest xmlns:android="http://schemas.android.com/apk/res/android"

    package="com.example.huichang.logintest"  android:installLocation="preferExternal" > 

    重新運行,問題解決。

備註:
(1)網上其他人說的刪除app應用,data/app中相關數據等都不能解決問題。

(2)我的手機的存儲空間是充足的,見圖。

(3)將apk 拷貝到手機上安裝也是OK的。
(4)個人猜測是 通過androd studio 安裝時,因爲是將apk拷貝到一塊存儲,這塊存儲大小是有限制的。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章