ClassNotFound exception when using admob jar in my android project?

与世无争的帅哥 提交于 2019-12-24 08:39:03

问题


i have added google admob jar, have added jar file to builtpath and also have declared both the adactivity to enifest file as described in http://code.google.com/mobile/ads/docs/android link.. then too i am getting following error..

I am using android 2.3 simulator and using ADT17 latest one.

java.lang.NoClassDefFoundError: com.google.ads.AdView


回答1:


Turns out r17 of Android Tools requires the /lib folder to be /libs, and the SDK has to be placed in there and referenced internally in order for it to be included in the apk.

check this question for more information ClassNotFound when trying to implement AdMob banner




回答2:


Yes it is a problem with ADT 17. Here's a nice link for solving this problem.



来源:https://stackoverflow.com/questions/9904614/classnotfound-exception-when-using-admob-jar-in-my-android-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!