问题
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