Not able to integrate MoPub Banner Code to my Android application -
i using below link reference integrating mopub banner code
android
application:
https://app.mopub.com/inventory/adunit/9e96b9fc658144c7a6abd0407ed21187/generate/?status=welcome
i have done first steps , having problem step 2 (android banner code integration
)
i have included:
<com.mopub.mobileads.mopubview android:id="@+id/adview" android:layout_width="fill_parent" android:layout_height="50dp" />
in layout below:
<?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>
and have included
private mopubview mopubview;
but it's giving error
'mopubview cannto resoled type'
just clear project along mopub-sdk
project included library project.
Comments
Post a Comment