com.google.ads.AdView不能被实例化? [英] com.google.ads.AdView could not be instantiated?

查看:285
本文介绍了com.google.ads.AdView不能被实例化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下类不能被实例化: - com.google.ads.AdView(公开课,显示错误日志) 有关详细信息,请参阅错误日志(窗口>显示视图)。

The following classes could not be instantiated: - com.google.ads.AdView (Open Class, Show Error Log) See the Error Log (Window > Show View) for more details.

在获得平面布置这个错误: 我做了所有需要设置的广告,像加罐子需要的东西,写在清单中也是如此。 我知道我,米张贴重复的问题,但我无法理解这一点。

getting this error in graphic layout: I did all the necessary things required for setting an ad , like adding jar, wrote in manifest as well. I know I,m posting duplicate question but I cant understand it.

<一个href="http://stackoverflow.com/questions/11035340/admob-the-following-classes-could-not-be-instantiated-com-google-ads-adview">Admob &QUOT;下面的类不能被实例化: - com.google.ads.AdView&QUOT;对于Admob的6.0.1运行2.3.3

推荐答案

将此

  xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"

  xmlns:android="http://schemas.android.com/apk/res/android"
  xmlns:tools="http://schemas.android.com/tools"

在XML布局文件的开头

at the beginning of the xml layout file

这篇关于com.google.ads.AdView不能被实例化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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