本文介绍了Android的 - Admob的广告错误。自以为AdActivity没有声明?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我开始拉我的头发了这一点:
I am starting to pull my hair out over this:
我试图整合广告到我的应用程序(安卓),但每当我打开我的应用程序,它会显示:
I am trying to integrate ad's into my application (Android), but whenever I load my app, it displays:
You must have AdActivity declared in AndroidManifest.xml with configChanges
不过,我确实有它在清单中声明!
But I do have it declared in the manifest!
我使用API 15和API 8都试过了,但它们都具有相同的结果。
I have tried using API 15, and API 8, but they both have the same outcome.
我现在用的是AdMob的SDK 4.3.1。
I am using the admob sdk 4.3.1.
请任何人可以帮助我呢?
Please can anybody help me at all?
推荐答案
这是真正的工作示例:注:忽略你可能在清单中的任何警告
This is real working example:Note: Ignore any warnings you may have in the manifest.
AndroidManifest.xml中
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.zeem"
android:versionCode="104"
android:versionName="1.0.4">
<uses-sdk android:minSdkVersion="10" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name="com.zeem.ZeemActivity"
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>
default.properties
target=android-13
这篇关于Android的 - Admob的广告错误。自以为AdActivity没有声明?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!