在我的Android项目中使用AdMob的罐子时,ClassNotFound的异常? [英] ClassNotFound exception when using admob jar in my android project?
问题描述
我已经加入谷歌AdMob的罐子,增加了jar文件到builtpath,也可以作为中的 HTTP://$c$c.google.com/mobile/ads/docs/android 链接..然后过我收到以下错误..
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..
我使用的是Android 2.3的模拟器,并使用ADT17最新的一个。
I am using android 2.3 simulator and using ADT17 latest one.
java.lang.NoClassDefFoundError的:com.google.ads.AdView
java.lang.NoClassDefFoundError: com.google.ads.AdView
推荐答案
原来的Android工具的R17需要的/ lib文件夹是/库,以及SDK已经被放置在那里,内部参考,以便它被包括在的apk
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.
检查这个问题的更多信息 <一href="http://stackoverflow.com/questions/9815505/classnotfound-when-trying-to-implement-admob-banner">ClassNotFound试图执行AdMob的横幅时
check this question for more information ClassNotFound when trying to implement AdMob banner
这篇关于在我的Android项目中使用AdMob的罐子时,ClassNotFound的异常?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!