Have you made any progress on this?

I am having the same issue with an external JACKSON library.

Seems to be a show stopper for us.

Is there a different way we need to include the libraries?

On Friday, March 9, 2012 4:46:15 AM UTC-6, alex2k8 wrote:
>
> I have migrated to adt-17-preview (http://tools.android.com/​download/ 
> adt-17-preview <http://tools.android.com/download/adt-17-preview>), 
> because I had issues (http://code.google.com/p/ 
> android/issues/detail?id=21031<http://code.google.com/p/android/issues/detail?id=21031>​)
>  
> with previous versions... Now I have 
> such setup: 
>
> ProjC -> ProjB -> ProjA 
>
> Where 
>
>   ProjA: Java Project 
>
>   ProjB: Android Library 
>     - Properties > Android > Library > [x] Is Library 
>     - Properties > Java Build Path > Projects > ProjA 
>
>   ProjC: Android Project 
>     - Properties > Android > Library: ProjB 
>     - Properties > Java Build Path > Projects > ProjA 
>
> ProjA has: 
>
>     public class A { 
>         public void m1() {} 
>     } 
>
> ProjB has: 
>
>     public class B { 
>         public void m1() { 
>             new A().m1(); 
>         } 
>     } 
>
> ProjC has: 
>
>     public void onCreate(Bundle savedInstanceState) { 
>         ... 
>         B b = new B(); 
>         b.m1(); 
>     } 
>
> The application crashes with such errors: 
>
>
> 03-09 14:33:05.730: E/dalvikvm(6508): Could not find class 
> 'com.test.A', referenced from method com.test.B.m1 
> 03-09 14:33:05.730: W/dalvikvm(6508): VFY: unable to resolve new- 
> instance 5 (Lcom/test/A;) in Lcom/test/B; 
> 03-09 14:33:05.730: D/dalvikvm(6508): VFY: replacing opcode 0x22 at 
> 0x0000 
> 03-09 14:33:05.730: D/dalvikvm(6508): DexOpt: unable to opt direct 
> call 0x0004 at 0x02 in Lcom/test/B;.m1 
> 03-09 14:33:05.730: D/AndroidRuntime(6508): Shutting down VM 
> 03-09 14:33:05.730: W/dalvikvm(6508): threadid=1: thread exiting with 
> uncaught exception (group=0x40a3b1f8) 
> 03-09 14:33:05.740: E/AndroidRuntime(6508): FATAL EXCEPTION: main 
> 03-09 14:33:05.740: E/AndroidRuntime(6508): 
> java.lang.​NoClassDefFoundError: com.test.A 
> 03-09 14:33:05.740: E/AndroidRuntime(6508):         at 
> com.test.B.m1(B.java: 
> 6) 
> 03-09 14:33:05.740: E/AndroidRuntime(6508):         at 
> com.test.MainActivity.​onCreate(MainActivity.java:14) 
>
> Q: What can I do to fix this error?

-- 
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