1

アプリケーションに統合Mopub Banner Codeするための参照として、以下のリンクを使用しています。Android

https://app.mopub.com/inventory/adunit/9e96b9fc658144c7a6abd0407ed21187/generate/?status=welcome

最初の手順は完了しましたが、手順 2 で問題が発生しています ( Android Banner Code Integration)

私が含めた:

<com.mopub.mobileads.MoPubView
    android:id="@+id/adview"
    android:layout_width="fill_parent"
    android:layout_height="50dp"
    />

以下のように私のレイアウトで:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" 
    android:background="@drawable/background_activated">

  <CheckBox android:id="@+id/crime_list_item_solvedCheckBox"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:gravity="center"
    android:layout_alignParentRight="true"
    android:enabled="false"
    android:focusable="false"
    android:padding="4dp" />
  <TextView android:id="@+id/crime_list_item_titleTextView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_toLeftOf="@id/crime_list_item_solvedCheckBox"
    android:textStyle="bold"
    android:paddingLeft="4dp"
    android:paddingRight="4dp"
    android:text="Crime title" />

  <TextView android:id="@+id/crime_list_item_dateTextView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_below="@id/crime_list_item_titleTextView"
    android:layout_toLeftOf="@id/crime_list_item_solvedCheckBox"
    android:paddingLeft="4dp"
    android:paddingRight="4dp"
    android:paddingTop="4dp"
    android:text="Crime date" />

  <com.mopub.mobileads.MoPubView
    android:id="@+id/adview"
    android:layout_width="fill_parent"
    android:layout_height="50dp"
    />
</RelativeLayout>

そして、私は含めました

private MoPubView moPubView;

しかし、それはエラーを与えています

'MoPubView cannto be resoled to a type'
4

1 に答える 1

0

mopub-sdkプロジェクトにライブラリとして含まれているプロジェクトと一緒にプロジェクトをクリアするだけです。

于 2014-03-24T15:49:26.980 に答える