我已經創建了Eclipse的嚮導,一個空的應用SD卡,安卓:無法移動應用
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.locationtest"
android:versionCode="1"
android:versionName="1.0"
android:installLocation="auto"
>
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />
的移動到SD卡按鈕被啓用,但是當我按下它,我終於得到一個無法移動應用程序消息。
如何將應用程序移動到SD卡?
UPDATE:
當我設置
android:installLocation="preferExternal"
我得到
Installation error: INSTALL_FAILED_CONTAINER_ERROR
在Eclipse和日誌:
D/AndroidRuntime(8127): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
D/AndroidRuntime(8127): CheckJNI is ON
D/AndroidRuntime(8127): Calling main entry com.android.commands.pm.Pm
W/ActivityManager(2207): No content provider found for permission revoke: file:///data/local/tmp/LocationTest.apk
D/VoldCmdListener(2119): asec list
I/PackageHelper(6435): Size of container 2 MB
D/VoldCmdListener(2119): asec create smdl2tmp1 2 fat {} 10010
E/Vold (2119): Error opening devmapper (No such file or directory)
E/Vold (2119): ASEC device mapping failed (No such file or directory)
E/PackageHelper(6435): Failed to create secure container smdl2tmp1
E/DefContainer(6435): Failed to create container smdl2tmp1
W/ActivityManager(2207): No content provider found for permission revoke: file:///data/local/tmp/LocationTest.apk
D/dalvikvm(2207): GC_EXPLICIT freed 1131K, 38% free 15050K/24007K, paused 2ms+7ms
D/AndroidRuntime(8127): Shutting down VM
D/dalvikvm(8127): GC_CONCURRENT freed 123K, 82% free 467K/2560K, paused 0ms+1ms
D/dalvikvm(8127): Debugger has detached; object registry had 1 entries
D/dalvikvm(8127): Compiler shutdown in progress - discarding request
D/dalvikvm(8127): Compiler shutdown in progress - discarding request
I/AndroidRuntime(8127): NOTE: attach of thread 'Binder Thread #3' failed
更新2:
它看起來像是發生在只有一個特定製造商的設備上。 或者,也許這是因爲SD卡處於某種不正常的狀態(不知道什麼可能是錯誤的)。而不是
它不安裝,請參閱問題中的更新。 – 18446744073709551615
看到我編輯的答案。 –