晚上好,
我正在尝试在我的 Android 应用程序中使用亚马逊的新广告服务,遵循他们的指导方针让我到目前为止,但我无法摆脱一个错误......
有错误的代码是
// Programmatically create the AmazonAdLayout
this.adView = new AdLayout(this, AdLayout.AdSize.AD_SIZE_320x50);
LinearLayout layout = (LinearLayout) findViewById(R.id.mainLayout);
// If you declared AdLayout in your xml you would instead
// replace the 3 lines above with the following line
// this.adView = (AdLayout) findViewById( R.id.adview );
this.adView.loadAd(new AdTargetingOptions()); // async task to retrieve an ad
错误在线
LinearLayout 布局 = (LinearLayout) findViewById(R.id.mainLayout);
'mainLayout 无法解析或不是字段'
我想不明白?有 Eclipse 知识的人可以帮忙吗?:)