简体   繁体   English

找不到方法com.xxx.xxx.MainActivity.onCreate引用的类“ com.google.android.gms.ads.AdView”

[英]Could not find class 'com.google.android.gms.ads.AdView', referenced from method com.xxx.xxx.MainActivity.onCreate

I am newbiw to android.Done a new app,using http://myaucir.blogspot.in/2014/08/google-play-game-services-and-admob-in.html tutorial i did admob related coding. 我是android的新手。使用http://myaucir.blogspot.in/2014/08/google-play-game-services-and-admob-in.html教程完成了一个新应用,我做了admob相关编码。

But i am getting error 但是我出错了

Could not find class 'com.google.android.gms.ads.AdView', referenced from method com.xxx.xxx.MainActivity.onCreate

Checked the solution 检查解决方案

https://groups.google.com/forum/?nomobile=true#!search/Could$20not$20find$20class$20$27com.google.android.gms.ads.AdView/google-admob-ads-sdk/_AlmfhrsR_E/GJwoTpOSBoAJ

By this solution i found that,use a old adt and sdk. 通过此解决方案,我发现使用旧的adt和sdk。 But i am started newly, so recently i downloaded adt and sdk.So how can i get old adt and sdk Can anyone help me to resolve . 但是我是新手,所以最近我下载了adt和sdk。那么我怎么能老到adt和sdk谁能帮助我解决。

Your error means that you have to use a recent version of ADT not an older one as you asked in your question. 您的错误意味着您必须使用最新版本的ADT,而不是问题中所使用的较旧版本。 Try this : http://developer.android.com/tools/sdk/eclipse-adt.html 试试这个: http : //developer.android.com/tools/sdk/eclipse-adt.html

最后通过卸载eclipse解决了此错误。下载eclipse http://developer.android.com/sdk/index.html并通过新版本更新libgdx

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 类:com.google.android.gms.ads.AdView,无法实例化 - Class: com.google.android.gms.ads.AdView , could not be instantiated Android无法实例化以下类:-com.google.android.gms.ads.AdView(打开类,显示异常) - Android The following classes could not be instantiated: - com.google.android.gms.ads.AdView (Open Class, Show Exception) 无法实例化以下类:com.google.android.gms.ads.AdView(打开类,显示错误日志) - The following classes could not be instantiated:com.google.android.gms.ads.AdView (Open Class, Show Error Log) ClassNotFoundException:未找到类“com.google.android.gms.ads.AdView” - ClassNotFoundException: Didn't find class “com.google.android.gms.ads.AdView” 元件 <com.google.android.gms.ads.AdView> 未知 - element <com.google.android.gms.ads.AdView> is unknown 找不到com.google.android.gms.ads.AdView - com.google.android.gms.ads.AdView not found API级别&lt;21的com.google.android.gms.ads.AdView - com.google.android.gms.ads.AdView in API Level < 21 ADMOB:无法实例化以下类:-com.google.android.gms.ads.AdView - ADMOB: The following classes could not be instantiated: - com.google.android.gms.ads.AdView adMob XML:无法实例化以下类: - com.google.android.gms.ads.AdView - adMob XML:The following classes could not be instantiated: - com.google.android.gms.ads.AdView ADMOB XML无法实例化以下类:-com.google.android.gms.ads.AdView - ADMOB XML The following classes could not be instantiated: - com.google.android.gms.ads.AdView
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM