In the onCreate() method of the activity I want the interstitial to appear in, I have the following code:
MMAdView interAdView = new MMAdView(this, MY_APP_ID, MMAdView.FULLSCREEN_AD_LAUNCH, true, null);
interAdView.fetch();
interAdView.setListener(new BasicMMAdListener()
{
@Override
public void MMAdCachingCompleted(MMAdView adview, boolean success)
{
if(success)
adview.display();
}
});
The code compiles without error, but at runtime I get the following Log output
which indicates an error at the first line of my code snippet, i.e. the one
starting: MMAdView interAdView = new MMAdView(this, ...
Could not find class 'com.millennialmedia.android.MMAdView', referenced from method com.mycompany.mygame.myactivity.onCreate
I am puzzled because I thought that if there was somehow a missing class then the app should not compile.