0

I have read every single question on here about the "you must have AdActivity declared in AndroidManifest.xml with configChanges" error.

I've also tried every single solution offered. Changed the target sdk in project.properties, etc.

I'm stumped. Not that it is any different than all the others, but here is my manifest:

<uses-sdk
    android:minSdkVersion="14"
    android:targetSdkVersion="15" />

<uses-permission android:name="android.permission.SET_WALLPAPER" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<supports-screens
    android:anyDensity="true"
    android:largeScreens="true"
    android:normalScreens="true"
    android:resizeable="true"
    android:smallScreens="true"
    android:xlargeScreens="true" />

<application
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
  >
    <activity
        android:name=".Main"
        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"/>
          />
</application>

Using version 4.3.1. Have created the libs folder, added the jar, did project clean, exited and restarted eclipse, EVERYTHING I could think of. Any suggestions?

4

1 回答 1

0

adMob AdActivity 应该是这样的...

<activity
            android:name="com.google.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize" >
        </activity>
于 2012-04-18T06:51:05.783 回答