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)我的手機的存儲空間是充足的,見圖。
(4)個人猜測是 通過androd studio 安裝時,因爲是將apk拷貝到一塊存儲,這塊存儲大小是有限制的。