Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Help with AdMob please! — Gideros Forum

Help with AdMob please!

joelghilljoelghill Member
edited August 2012 in General questions
I've been following the guide here (http://appcodingeasy.com/Gideros-Mobile/Gideros-Implementing-AdMob-for-Android) to implementing AdMob for an android game I've developed.

Upon startup in debugging mode, the application crashes. In the debug log there is an error stating that:

"08-14 17:43:40.656: E/dalvikvm(4054): Could not find class 'com.google.ads.AdView', referenced from method com.giderosmobile.android.LeyendaActivity.onCreate
"

I have no idea what I'm doing wrong here. Could someone point me in the right direction? I would really appreciate it!

Thanks!

Comments

  • Hey @alexzheng, that looked favorable, but I tried that was recommended in the thread and it didn't seem to help my situation.

    For anyone else that stumbles across this, here is a more comprehensive list from the debugging log:

    "08-14 21:47:28.718: E/dalvikvm(4328): Could not find class 'com.google.ads.AdView', referenced from method com.giderosmobile.android.LeyendaActivity.onCreate
    08-14 21:47:28.718: W/dalvikvm(4328): VFY: unable to resolve new-instance 69 (Lcom/google/ads/AdView;) in Lcom/giderosmobile/android/LeyendaActivity;
    08-14 21:47:28.718: D/dalvikvm(4328): VFY: replacing opcode 0x22 at 0x001b
    08-14 21:47:28.718: I/dalvikvm(4328): Could not find method com.google.ads.AdView.destroy, referenced from method com.giderosmobile.android.LeyendaActivity.onDestroy
    08-14 21:47:28.718: W/dalvikvm(4328): VFY: unable to resolve virtual method 305: Lcom/google/ads/AdView;.destroy ()V
    08-14 21:47:28.718: D/dalvikvm(4328): VFY: replacing opcode 0x6e at 0x0006
    08-14 21:47:28.722: D/dalvikvm(4328): DexOpt: unable to opt direct call 0x0130 at 0x21 in Lcom/giderosmobile/android/LeyendaActivity;.onCreate
    08-14 21:47:28.722: D/dalvikvm(4328): DexOpt: unable to opt direct call 0x012f at 0x43 in Lcom/giderosmobile/android/LeyendaActivity;.onCreate
    08-14 21:47:28.726: D/dalvikvm(4328): Trying to load lib /data/data/com.joelghill.leyenda/lib/libgideros.so 0x4130d9c0
    08-14 21:47:28.730: D/dalvikvm(4328): Added shared lib /data/data/com.joelghill.leyenda/lib/libgideros.so 0x4130d9c0
    08-14 21:47:28.730: D/dalvikvm(4328): No JNI_OnLoad found in /data/data/com.joelghill.leyenda/lib/libgideros.so 0x4130d9c0, skipping init
    "

    Although I have imported the AdMob.jar file, and also pointed to the javaDoc location and source location, it still has trouble finding the com.google.ads.AdView class.

    I'll continue to search the world wide web for clues, but I'm so inexperienced with Java that I don't even know where to start :S

    Thanks again!
  • OK... I actually took another look at that solution and it does in fact work. I was running old software, and after a few updates it was working!
Sign In or Register to comment.