AdMob的不能在安卓查看 [英] admob cannot be viewed in android

查看:165
本文介绍了AdMob的不能在安卓查看的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的应用程序中使用Admob的通过在设备上运行它,它表现出什么,我发现在logcat中的followig错误

i tried using Admob in my app by running it in a device and it showed nothing and i found the followig errors in logcat

10月4号至七日:49:05.570:ERROR /广告(1084):AD浏览报缺少必需的XML属性adUnitId。 十月四日至七号:49:07.850:ERROR /广告(1084):找不到com.google.ads.AdActivity,请确保它是注册在AndroidManifest.xml中

04-07 10:49:05.570: ERROR/Ads(1084): AdView missing required XML attribute adUnitId. 04-07 10:49:07.850: ERROR/Ads(1084): Could not find com.google.ads.AdActivity, please make sure it is registered in AndroidManifest.xml.

但在清单文件中我提到的下面几行 {<元数据的android:值=axxxxxxxxxxxxxxxx机器人:NAME =ADMOB_PUBLISHER_ID/>   <活动机器人:名称=com.google.ads.AdMobActivity/> }

But in manifest file i have mentioned the following lines {<meta-data android:value="axxxxxxxxxxxxxxxx" android:name="ADMOB_PUBLISHER_ID"/> <activity android:name="com.google.ads.AdMobActivity"/>}

什么是我的错误...

What is my error...

我完全有四项活动在我的应用程序,我想加入AdMob的在我的第4个活动。 我是否需要添加上述表示与该活动或其他任何东西请行帮助我的朋友......

I have totally 4 Activities in my App and i am trying to add the admob in my 4th activity. whether i have to add the above said lines with that activity or anything else pls help me friends...

推荐答案

通过添加下面的清单文件显示可以是固定的错误:

The error shown can be fixed by adding the following to the manifest file:

&LT;活动机器人:名称=com.google.ads.AdActivity             机器人:主题=@安卓风格/ Theme.NoTitleBar.Fullscreen             机器人:configChanges =定位|键盘| keyboardHidden/&GT;

<activity android:name="com.google.ads.AdActivity" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:configChanges="orientation|keyboard|keyboardHidden" />

这篇关于AdMob的不能在安卓查看的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆