adb install - 失败[0]

时间:2015-04-18 11:32:10

标签: android adb android-5.0-lollipop

Failure [0]是什么意思?

在Android L,Galaxy Note 4最新的AT& T固件

上发生
~root$ adb install wanderlust.apk 
4975 KB/s (185182205 bytes in 36.346s)
    pkg: /data/local/tmp/wanderlust.apk
Failure [0]

通过logcat详细记录日志......观察者不再存在?

D/PackageManager(  992): New package installed
D/PackageManager(  992): doPostInstall for uid{10276}
D/PackageManager(  992): [MSG] MCS_UNBIND
D/PackageManager(  992): [MSG] SEND_PENDING_BROADCAST
D/PackageManager(  992): [MSG] POST_INSTALL: observer{909958069}
D/PackageManager(  992):           Handling post-install for 1
D/PackageManager(  992): delete codoeFile: 
D/PackageManager(  992): result of install: 1{909958069}
D/PackageManager(  992): [MSG] CHECK_PENDING_VERIFICATION
D/PackageManager(  992): remove MCS_UNBIND message and Posting MCS_UNBIND 10 secs later
D/PackageManager(  992): [MSG] MCS_UNBIND
D/PackageManager(  992): START_PACKAGE_INSTALL: observer{276791339}
D/PackageManager(  992):           originPath{/data/local/tmp/test.apk}
D/PackageManager(  992): [MSG] INIT_COPY: observer{276791339}
D/PackageManager(  992):           idx{0}
D/PackageManager(  992):           for_user{UserHandle{-1}}
D/PackageManager(  992): [MSG] MCS_BOUND: observer{276791339}
D/PackageManager(  992):           for_user{UserHandle{-1}}
D/PackageManager(  992): copyApk
D/PackageManager(  992): [MSG] MCS_RECONNECT
D/PackageManager(  992): [MSG] PROCESS_PENDING_INSTALL: observer{276791339}
D/PackageManager(  992): currentStatus{0}
D/PackageManager(  992): [MSG] POST_INSTALL: observer{276791339}
D/PackageManager(  992):           Handling post-install for 2
D/PackageManager(  992): result of install: 0{276791339}
D/PackageManager(  992): [MSG] MCS_BOUND: observer{276791339}
D/PackageManager(  992):           for_user{UserHandle{-1}}
D/PackageManager(  992): copyApk
D/PackageManager(  992): remove MCS_UNBIND message and Posting MCS_UNBIND 10 secs later
D/PackageManager(  992): [MSG] PROCESS_PENDING_INSTALL: observer{276791339}
D/PackageManager(  992): currentStatus{-18}
D/PackageManager(  992): [MSG] POST_INSTALL: observer{276791339}
D/PackageManager(  992):           Handling post-install for 3
D/PackageManager(  992): result of install: -18{276791339}
I/PackageManager(  992): Observer no longer exists.
D/PackageManager(  992): [MSG] MCS_UNBIND

1 个答案:

答案 0 :(得分:0)

我在安装了SD卡的三星手机上同时从Android Studio和apk安装了一个应用程序时遇到了同样的错误“安装结果:-18”。 我解决了删除问题

android:installLocation="preferExternal"

来自清单。