在我希望插页式广告出现的活动的 onCreate() 方法中,我有以下代码:
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();
}
});
代码编译没有错误,但在运行时我得到以下日志输出,这表明我的代码片段的第一行有错误,即开始的那个:MMAdView interAdView = new MMAdView(this, ...
Could not find class 'com.millennialmedia.android.MMAdView', referenced from method com.mycompany.mygame.myactivity.onCreate
我很困惑,因为我认为如果有某种缺失的类,那么应用程序不应该编译。