- message:
Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE Please check logcat output for more details. Launch canceled!- It happens regardless of app size, or how much storage is available.
* Solution
- 先移除再重新安裝,可解決,但可能還是會再發生相同問題。
- If your test device is running Android 2.2 or later then add the android:installLocation attribute to your application's manifest file, with the value "preferExternal". This will force the app to be installed on the device's external storage, such as a phone's SD card.
- assets內過大的資源放在(載到)SD card,再重SD card 讀取。
- process internal memory default is 16M,可改變 RUNTIME_HEAP_MAX 的大小:
// 尚未試過以下這方法 #ifdef CUSTOM_RUNTIME_HEAP_MAX #define __make_max_heap_opt(val) #val #define _make_max_heap_opt(val) "-Xmx" __make_max_heap_opt(val) opt.optionString = _make_max_heap_opt(CUSTOM_RUNTIME_HEAP_MAX); #undef __make_max_heap_opt #undef _make_max_heap_opt #else /* limit memory use to 16MB */ opt.optionString = "-Xmx16m"; #endif mOptions.add(opt);
* Reference
- Solution: Android INSTALL_FAILED_INSUFFICIENT_STORAGE error - Stack Overflow *
- Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE - Android 问题&解答 - eoe·Android开发者门户 - Powered by Discuz!
沒有留言:
張貼留言