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 8200041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T06:17:54+00:00 2026-06-07T06:17:54+00:00

I have read through about 2 dozen articles and through the Google documents and

  • 0

I have read through about 2 dozen articles and through the Google documents and my code as it is just gives me a force close box. Here is my code

Manifest

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.ndai.funnys"
    android:versionCode="1" 
    android:versionName="1.0" >
    <uses-sdk android:minSdkVersion="8"  
        android:targetSdkVersion="15" />
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity
            android:name=".GuysFunnysActivity"
            android:label="@string/app_name" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="com.google.ads.AdActivity"
    android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
    </application>
</manifest>

main.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout  android:id="@+id/LinearLayout01"
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
    android:orientation="vertical"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <com.google.ads.AdView android:id="@+id/adView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        ads:adUnitId="a14ffb06b21e68e"
        ads:adSize="BANNER"
        ads:testDevices="TEST_EMULATOR, 12345678901234567890123456789012"
        ads:loadAdOnCreate="true"/>
</LinearLayout>

JAVA

package com.ndai.funnys;

import java.io.InputStream;
import java.net.URL;
import android.app.Activity;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.LinearLayout;
import com.google.ads.*;

public class GuysFunnysActivity extends Activity 
{
    @Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
    }
}

What am I doing wrong? This is exactly as I have seen it on other sites. I have also tried the non-xml version with the same exact issues, even when I used the test device code.

LOGCAT

07-09 17:34:23.207: D/AndroidRuntime(729): Shutting down VM
07-09 17:34:23.207: W/dalvikvm(729): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
07-09 17:34:23.237: E/AndroidRuntime(729): FATAL EXCEPTION: main
07-09 17:34:23.237: E/AndroidRuntime(729): java.lang.RuntimeException: Unable to start activity ComponentInfo    {com.ndai.funnys/com.ndai.funnys.GuysFunnysActivity}: android.view.InflateException: Binary XML file line #8: Error inflating class com.google.ads.AdView
07-09 17:34:23.237: E/AndroidRuntime(729):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2663)
07-09 17:34:23.237: E/AndroidRuntime(729):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
07-09 17:34:23.237: E/AndroidRuntime(729):  at android.app.ActivityThread.access$2300(ActivityThread.java:125)
07-09 17:34:23.237: E/AndroidRuntime(729):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
07-09 17:34:23.237: E/AndroidRuntime(729):  at android.os.Handler.dispatchMessage(Handler.java:99)
07-09 17:34:23.237: E/AndroidRuntime(729):  at android.os.Looper.loop(Looper.java:123)
07-09 17:34:23.237: E/AndroidRuntime(729):  at android.app.ActivityThread.main(ActivityThread.java:4627)
07-09 17:34:23.237: E/AndroidRuntime(729):  at java.lang.reflect.Method.invokeNative(Native Method)
07-09 17:34:23.237: E/AndroidRuntime(729):  at java.lang.reflect.Method.invoke(Method.java:521)
07-09 17:34:23.237: E/AndroidRuntime(729):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
07-09 17:34:23.237: E/AndroidRuntime(729):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
07-09 17:34:23.237: E/AndroidRuntime(729):  at dalvik.system.NativeStart.main(Native Method)
07-09 17:34:23.237: E/AndroidRuntime(729): Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class com.google.ads.AdView
07-09 17:34:23.237: E/AndroidRuntime(729):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:576)
07-09 17:34:23.237: E/AndroidRuntime(729):  at android.view.LayoutInflater.rInflate(LayoutInflater.java:618)
07-09 17:34:23.237: E/AndroidRuntime(729):  at android.view.LayoutInflater.inflate(LayoutInflater.java:407)
07-09 17:34:23.237: E/AndroidRuntime(729):  at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
07-09 17:34:23.237: E/AndroidRuntime(729):  at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
07-09 17:34:23.237: E/AndroidRuntime(729):  at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:198)
07-09 17:34:23.237: E/AndroidRuntime(729):  at android.app.Activity.setContentView(Activity.java:1647)
07-09 17:34:23.237: E/AndroidRuntime(729):  at com.ndai.funnys.GuysFunnysActivity.onCreate(GuysFunnysActivity.java:20)
07-09 17:34:23.237: E/AndroidRuntime(729):  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
07-09 17:34:23.237: E/AndroidRuntime(729):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2627)
07-09 17:34:23.237: E/AndroidRuntime(729):  ... 11 more
07-09 17:34:23.237: E/AndroidRuntime(729): Caused by: java.lang.ClassNotFoundException: com.google.ads.AdView in loader dalvik.system.PathClassLoader    [/data/app/com.ndai.funnys-2.apk]
07-09 17:34:23.237: E/AndroidRuntime(729):  at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:243)
07-09 17:34:23.237: E/AndroidRuntime(729):  at java.lang.ClassLoader.loadClass(ClassLoader.java:573)
07-09 17:34:23.237: E/AndroidRuntime(729):  at java.lang.ClassLoader.loadClass(ClassLoader.java:532)
07-09 17:34:23.237: E/AndroidRuntime(729):  at android.view.LayoutInflater.createView(LayoutInflater.java:466)
07-09 17:34:23.237: E/AndroidRuntime(729):  at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:565)
07-09 17:34:23.237: E/AndroidRuntime(729):  ... 20 more
  • 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-06-07T06:17:55+00:00Added an answer on June 7, 2026 at 6:17 am

    In Eclipse, all jars must be added to libs/ or specifically exported in the Order And Export tab of the Java Build Path. Otherwise, the jar won’t get bundled in to your compiled code, and your app will fail at runtime when referencing the jar files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just read through lots of articles about how to create thumbnail screenshots
I have read through many posts and articles about styling a Wordpress Gallery, but
I have read through some tutorials about javascript prototypal inheritance patterns but I am
I've read through the various posts on SO about this, but have still not
I have read through the follow SO articles C#: How do I call a
I have read through several articles which are alternatives to using setpixel/getpixel but I
I have read through this SO question about 32-bits, but what about 64-bit numbers?
I am just starting out with QT. I have read through some tutorials, and
I've read through this post about disposing of datasets and I still have a
I've read about a dozen similar questions on here and tried everything I can

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.