It's looking like the latest android upgrade is causing this.... I'm getting the error with com.google.gson, after I upgraded the android sdk too.
I upgraded gson after i began getting this error but that didn't help. On Apr 5, 1:48 pm, Jens Axelsson <[email protected]> wrote: > I have the same issue. Even just following the > examplehttps://developers.google.com/mobile-ads-sdk/docs/android/fundamentals > I get "04-05 22:31:17.203: E/dalvikvm(28635):Couldnotfindclass > 'com.google.ads.AdView', referenced from method > se.phidev.yxa.YxaActivity.onCreate", this was working fine until I > upgraded to ADT-17. > > On 4 Apr, 17:56, Steve <[email protected]> wrote: > > > > > I met this issue too. I can'tfindthe way to work around or fix it.... > > Anyone can help me? > > > On Friday, March 9, 2012 6:46:15 PM UTC+8, 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: > > > > publicclassA { > > > public void m1() {} > > > } > > > > ProjB has: > > > > publicclassB { > > > 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):Couldnotfindclass > > > '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?- Hide quoted text - > > - Show quoted text - -- 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

