简体   繁体   中英

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.

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. 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 .

Your error means that you have to use a recent version of ADT not an older one as you asked in your question. Try this : http://developer.android.com/tools/sdk/eclipse-adt.html

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM