java.lang.NoClassDefFoundError: com.google.ads.AdView
admob, android, eclipse, java
Solution
Just create manually the "libs" folder, and add your libraries there. By default, they doesn't exist
Problem
I am attempting to incorporate admob ads in my app. So far I have added the following code in the onCreate method of my app's main activity... ``` adView = new AdView(this,AdSize.BANNER,"my code number"); adView.loadAd(new AdRequest()); ``` The program compiles without error but at run time I get the message `java.lang.NoClassDefFoundError: com.google.ads.AdView`. I have seen a supposed explanation of the problem and the cure here but I could not see how it was applicable to my project because I do not have either a "lib" or "libs" directory within my project. According to eclipse's SDK manager, I have the most up to date version of everything that I use.