If you have Android Apps with admob, and you update admob API with current ADT (may be ADT-17 or later), may be your code can be compiled without error, but fail in run-time, caused by
java.lang.NoClassDefFoundError: com.google.ads.AdView!
It seem to be problem in ADT with external jars. To solve it:
- Create a
libs folder in your project.
- Copy AdMob jar, GoogleAdMobAdsSdk-6.0.1.jar, in the libs folder.
- Update Java Build Path by selecting "Add JARs..." (NOT "Add External JARs...") to add the jar in libs.
Related Posts :
Nokia HERE, delivering maps for Apple iPhone, Android and Firefox OSNokia is taking its mapping solutions out to the wider world in the form of HERE, offering HERE for iOS for Apple iPhone and iPad users and … Read More...
Reminder: Windows 8 Previews will expire SOON!Just a reminder, if you are using Windows 8 Preview, it will expire soon: Windows 8 Developer Preview and Consumer Preview will expire on J… Read More...
Display ZoomControls, Compass and MyLocation buttons on GoogleMap.To enable/disable ZoomControls, Compass and MyLocation buttons on GoogleMap, call the following methods of the UiSettings for GoogleMap. set… Read More...
Enable/Disable various gestures for GoogleMapTo enable/disable various gestures for GoogleMap, call setRotateGesturesEnabled(boolean enabled), setScrollGesturesEnabled(boolean enabled),… Read More...
Tips to add Support LibraryIn case you need to add Android Support Library, such as android-support-v4.jar; Google documents suggested to:- In Eclipse Select Project &… Read More...
0 Response to "java.lang.NoClassDefFoundError: com.google.ads.AdView"
Post a Comment