Dan,
thanks for clarification. It did help.
Regarding filing the bug: sure I can open one.

When I am running the activity I am getting now different error. Do
you know what it may be (see log below). Should I send separate
message to the group?
Thanks for your help
Tomasz


D/installd(   27): DexInv: --- BEGIN '/data/app/vmdl67263.tmp' ---
I/dalvikvm(  402): DexOpt: illegal method access (call
Ljunit/framework/Assert;.failNotEquals
(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V from
Lgroovy/util/GroovyTestCase;)
D/dalvikvm(  402): VFY: unable to resolve exceptionIdx=1153
D/dalvikvm(  402): DexOpt: load 2026ms, verify 9272ms, opt 287ms
D/installd(   27): DexInv: --- END '/data/app/vmdl67263.tmp' (success) ---
D/PackageManager(   66):   Activities: com.stechly.hello.Hello
I/installd(   27): move
/data/dalvik-cache/d...@app@vmdl67263....@classes.dex ->
/data/dalvik-cache/d...@app@com.stechly.hello....@classes.dex
D/PackageManager(   66): New package installed in
/data/app/com.stechly.hello.apk
D/ActivityManager(   66): Uninstalling process com.stechly.hello
D/AndroidRuntime(  396): Shutting down VM
D/dalvikvm(  396): DestroyJavaVM waiting for non-daemon threads to exit
I/dalvikvm(  396): DestroyJavaVM shutting VM down
D/dalvikvm(  396): HeapWorker thread shutting down
D/dalvikvm(  396): HeapWorker thread has shut down
D/jdwp    (  396): JDWP shutting down net...
D/dalvikvm(  396): VM cleaning up
D/dalvikvm(  396): LinearAlloc 0x0 used 527764 of 4194304 (12%)
D/dalvikvm(  166): GC freed 1293 objects / 65992 bytes in 272ms
D/dalvikvm(   66): GC freed 9877 objects / 426120 bytes in 130ms
I/ActivityManager(   66): Starting activity: Intent {
action=android.intent.action.MAIN
categories={android.intent.category.LAUNCHER} flags=0x10200000
comp={com.stechly.hello/com.stechly.hello.Hello} }
I/ActivityManager(   66): Start proc com.stechly.hello for activity
com.stechly.hello/.Hello: pid=409 uid=10020 gids={}
W/dalvikvm(  409): VFY: unable to resolve direct method 15358:
Ljava/lang/Object;.clone ()Ljava/lang/Object;
W/dalvikvm(  409): VFY:  rejecting opcode 0x70 at 0x0000
W/dalvikvm(  409): VFY:  rejected
Lcom/stechly/hello/Hello;.super$1$clone ()Ljava/lang/Object;
W/dalvikvm(  409): Verifier rejected class Lcom/stechly/hello/Hello;
W/dalvikvm(  409): Class init failed in newInstance call
(Lcom/stechly/hello/Hello;)
D/AndroidRuntime(  409): Shutting down VM
W/dalvikvm(  409): threadid=3: thread exiting with uncaught exception
(group=0x4000fe68)
E/AndroidRuntime(  409): Uncaught handler: thread main exiting due to
uncaught exception
E/AndroidRuntime(  409): java.lang.VerifyError: com.stechly.hello.Hello
E/AndroidRuntime(  409):        at java.lang.Class.newInstance(Native Method)
E/AndroidRuntime(  409):        at
android.app.Instrumentation.newActivity(Instrumentation.java:1096)
E/AndroidRuntime(  409):        at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2061)
E/AndroidRuntime(  409):        at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2157)
E/AndroidRuntime(  409):        at
android.app.ActivityThread.access$1800(ActivityThread.java:112)
E/AndroidRuntime(  409):        at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1581)
E/AndroidRuntime(  409):        at
android.os.Handler.dispatchMessage(Handler.java:88)
E/AndroidRuntime(  409):        at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  409):        at
android.app.ActivityThread.main(ActivityThread.java:3739)
E/AndroidRuntime(  409):        at
java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  409):        at
java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(  409):        at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
E/AndroidRuntime(  409):        at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
E/AndroidRuntime(  409):        at dalvik.system.NativeStart.main(Native Method)
I/Process (   66): Sending signal. PID: 409 SIG: 3
I/dalvikvm(  409): threadid=7: reacting to signal 3
I/dalvikvm(  409): Wrote stack trace to '/data/anr/traces.txt'
I/Process (  409): Sending signal. PID: 409 SIG: 9
I/ActivityManager(   66): Process com.stechly.hello (pid 409) has died.

On Wed, Apr 15, 2009 at 4:51 PM, Dan Bornstein <danf...@android.com> wrote:
>
> On Apr 14, 11:14 pm, Tomasz Stechly <tomasz.stec...@gmail.com> wrote:
>> While dex-ing a jar I am getting the the following. Does anyone knows
>> how to fix it? Supposedly build-no-debug should help but I cannot find
>> any reference to this flag in android source.
>>
>>   [apply] com.android.dx.cf.code.SimException: local variable type
>> mismatch: attempt to set or access a value of type
>> groovy.lang.Reference using a local variable of type
>> java.lang.Object[]. This is symptomatic of .class transformation tools
>> that ignore local variable information.
>
> The dx option you are looking for is "--no-locals". That said, if you
> can file a bug and include a sample .class file that fails in this
> manner, then that will help us (where "us" is probably "me") evaluate
> whether the bug is truly in the tool that generated the class (the
> groovy compiler?) or is actually in dx.
>
> Thanks.
>
> -dan
>
> >
>

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

Reply via email to