title: Error in integrating Admob in Android
body: <p>I have a completed app and I tried adding admob.</p>
  
  <p>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:</p>
  
  <p>The major errors shown in the logcat are as follows:</p>
  
  <blockquote>
    <p>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</p>
    
    <p>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</p>
    
    <p>04-06 20:22:30.627: ERROR/AndroidRuntime(2339): Caused by:
    java.lang.ClassNotFoundException: com.admob.ads.AdView in loader
    dalvik.system.PathClassLoader@44ccc270</p>
  </blockquote>
  
  <p>How to fix this error? Please help me.</p>