Hi everybody,

I'm experimenting with run-time bytecode generation on android to get
some of the more dynamic languages to work.
For now, I have a very crude approach that works in a proof-of-concept
stage.

I compile JVM class files to dex on the phone via a call to

com.android.dx.command.Main.main(strings);

While this is terribly inefficient, it works - but only on Android 1.5
and 1.6, not on 2.x.
E.g. on Android 2.0 I get

W/System.err( 5550): trouble processing:
W/System.err( 5550): com.android.dx.cf.iface.ParseException: invalid
constant pool index 0000
W/System.err( 5550): ...while parsing attributes[0]
W/System.err( 5550): ...while parsing Code attribute at offset
000001f7
W/System.err( 5550): ...while parsing attributes[0]
W/System.err( 5550): ...while parsing methods[2]
W/System.err( 5550): ...while parsing lang/core$blah__1.class
W/System.err( 5550): ...while processing lang/core$blah__1.class

Why doesn't this work on Android 2.x?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to