I type "adb install -r mumble.apk"
I get:
"
* daemon not running. starting it now *
* daemon started successfully *
308 KB/s (20130 bytes in 0.063s)
Can't dispatch DDM chunk 46454154: no handler defined
Can't dispatch DDM chunk 4d505251: no handler defined
pkg: /data/local/tmp/mumble.apk
Success
"
If I use "Debug" from eclipse, I don't see any error. I think the
install fails silently and I am actually debugging the previous
version of my application. (Confusing!)
>
> | Can't dispatchDDMchunk46454154: no handler defined
>
> If you convert that from hexadecimal to ASCII, it spells out "FEAT".
> It's asking the VM what features it supports. In this case, the VM
> doesn't know what a FEAT request is, so the request is rejected (and
> DDMS makes appropriate assumptions).
>
But the "FEAT" request is the result of typing "adb install -r
mumble.apk" - so it doesn't seem that there should be any unknown
feature requests.
I discovered that "adb install" only fails when I have an eclipse
window (and its DDMS) open.
WORKAROUND:
exit eclipse before using "adb install".
I'm running Ubuntu 9.10.
Anyone else experiencing this?
-Paul
"adb install" pushes the APK and then essentially invokes "adb shell
pm". If you do "adb shell pm" and watch logcat, you can see log
messages from the VM startup. When it starts it becomes visible to
DDMS, and DDMS issues a few queries to figure out what it is. (If you
watch DDMS, you'll see a "?" appear briefly.)
I'm not aware of any reason why DDMS would interfere with the pm
command. Do you see anything odd in the log file when you do the
above? (You can ignore the android runtime complaints about "thread
attach failed" -- it's a thread race where somebody is trying to
attach a native thread after the VM has already decided to shut down.)
$ adb shell pm
Can't dispatch DDM chunk 46454154: no handler defined
Can't dispatch DDM chunk 4d505251: no handler defined
usage: pm [list|path|install|uninstall]
----snip-----
logcat output:
D/AndroidRuntime( 999):
D/AndroidRuntime( 999): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<<
D/AndroidRuntime( 999): CheckJNI is ON
D/AndroidRuntime( 999): --- registering native functions ---
I/jdwp ( 999): received file descriptor 25 from ADB
D/AndroidRuntime( 999): Shutting down VM
D/dalvikvm( 999): DestroyJavaVM waiting for non-daemon threads to
exit
D/dalvikvm( 999): DestroyJavaVM shutting VM down
D/dalvikvm( 999): HeapWorker thread shutting down
D/dalvikvm( 999): HeapWorker thread has shut down
D/jdwp ( 999): JDWP shutting down net...
D/jdwp ( 999): +++ peer disconnected
I/dalvikvm( 999): Debugger has detached; object registry had 1
entries
D/dalvikvm( 999): VM cleaning up
D/dalvikvm( 999): LinearAlloc 0x0 used 600236 of 4194304 (14%)
HTH,
--patrickAR
On Jan 21, 2:30 am, patrickAR <patricio.kei...@gmail.com> wrote:
> I used to get "Can't dispatch DDM chunk XXXX : no handler defined" and
> after updating ADT (eclipse plugin, not the SDK packages) will no
> longer happen, apparently there´s you need an updated plugin for newer
> packages. To update ADT you must go to eclipse plugin via Help > Soft
> Updates > Available Soft and browsehttps://dl-ssl.google.com/android/eclipse/
> for updates.
>
> HTH,
> --patrickAR