Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4267512
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T06:54:35+00:00 2026-05-21T06:54:35+00:00

I have a completed app and I tried adding admob. I got the publisher

  • 0

I have a completed app and I tried adding admob.

I got the publisher id and I have added it in manifest file. When I run in the device, the app works fine in all other activities. However, when I move to the activity where the admob ad has been placed, my app crashes, and in logcat it shows the following error:

The major errors shown in the logcat are as follows:

04-06 20:22:30.627: ERROR/AndroidRuntime(2339):
java.lang.RuntimeException: Unable to start activity
ComponentInfo{com.mnn.image0114/com.menteon.speedimage0114.ResultPage}:
android.view.InflateException: Binary XML file line #8: Error
inflating class com.admob.ads.AdView

04-06 20:22:30.627: ERROR/AndroidRuntime(2339): Caused by:
android.view.InflateException: Binary XML file line #8: Error
inflating class com.admob.ads.AdView

04-06 20:22:30.627: ERROR/AndroidRuntime(2339): Caused by:
java.lang.ClassNotFoundException: com.admob.ads.AdView in loader
dalvik.system.PathClassLoader@44ccc270

How to fix this error? Please help me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T06:54:36+00:00Added an answer on May 21, 2026 at 6:54 am

    If you’re using a recent AdMob jar, you need to be using com.google.ads.AdView. This is certainly the case in Sdk 4.04.

    Having said that, I didn’t put my AdViews directly into the XML, but used the following code to place the ads inside a LinearLayout within my XML –

    adView = new AdView(this, AdSize.BANNER, MY_ID);
    LinearLayout layout = (LinearLayout) findViewById(R.id.adMob);
    layout.addView(adView);
    AdRequest adRequest = new AdRequest();
    adRequest.setTesting(GlobalData.DebugBuild);
    adView.loadAd(adRequest);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have localised my app by adding the correct resource files for various European
I have simple PyGTK app. Since I have to run multiple periodic tasks to
I have an iPhone app that I run on the simulator. XCode ver 3.2.6/4.3.
I have a Django app that gets it's data completely from an external source
I have completed every step in XMonad's tutorial for Mac. However, I cannot start
I have completed a simple database for a project. Only 6tables. Of the 6,
how do i get a list of user that have completed or not completed
How can I launch an application with administrator rights after I have completed an
Okay. I have completed my first python program.It has around 1000 lines of code.
I am new to Ruby on Rails, I have completed the Blog Tutorial .

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.