Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo Plugins Support › AdMob Crash

Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17028

    Phil

    Hi Felgo Team,

    I encountered this error message whenever I activate the admob plugin.

    E/AndroidRuntime( 1532): FATAL EXCEPTION: main
    E/AndroidRuntime( 1532): Process: xxx.xxx.xxxx, PID: 1532
    E/AndroidRuntime( 1532): java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.ViewGroup$LayoutParams com.google.android.gms.ads.AdView.getLayoutParams()' on a null object reference
    E/AndroidRuntime( 1532): 	at net.vplay.plugins.admob.AdMobBannerItem$4.run(AdMobBannerItem.java:141)
    E/AndroidRuntime( 1532): 	at android.os.Handler.handleCallback(Handler.java:739)
    E/AndroidRuntime( 1532): 	at android.os.Handler.dispatchMessage(Handler.java:95)
    E/AndroidRuntime( 1532): 	at android.os.Looper.loop(Looper.java:145)
    E/AndroidRuntime( 1532): 	at android.app.ActivityThread.main(ActivityThread.java:5938)
    E/AndroidRuntime( 1532): 	at java.lang.reflect.Method.invoke(Native Method)
    E/AndroidRuntime( 1532): 	at java.lang.reflect.Method.invoke(Method.java:372)
    E/AndroidRuntime( 1532): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1389)
    E/AndroidRuntime( 1532): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1184)
    I/WebViewFactory( 1532): Loading com.google.android.webview version 53.0.2785.124 (code 278512400)

    Please help. Thanks!

    #17029

    Günther
    Felgo Team

    Hi Phil!

    To make sure everything is set up correctly, please perform all integration steps described in documentation and also make sure that your project uses the Gradle Build System.

    The plugin works fine for my tests: Can you provide a minimum code example that includes the plugin and shows the crash?
    You can also send your minimal test-project as a zipped archive to support@felgo.com so we can try to verify the crash on our end.

    Which phone / device are using for testing where this issue occurs?

    Best,
    Günther

    #17030

    Phil

    Hi Günther,

     

    Thanks for your reply.

    I was just about to reply to my own report as I found out the source of the problem.

    Before the update, I had used a statement adMobBanner.visible=false.

    This is the cause of the problem. Once I commented it. It works fine now.

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded