0
안녕하세요. 이미 여러 개의 앱이 AdView에 있는데, 이번에는 잘못된 것을 볼 수 없습니다. 그래픽 레이아웃으로 Eclipse에서 파일을 보면 올바른 크기와 위치에 있지만 오류 메시지가 표시된 AdView 자리 표시자가 나타납니다. AdView를 초기화 할 수 없습니다. 필수 XML 속성 인 'adSize'가 없습니다.<com.google.ads.AdView에서 제공 : XML 분석 중 : 언 바운드 접두어
내 코드를 살펴보고 잘만하면 내가 누락 된 부분을 보길 바랍니다. 여기
코드입니다 :<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:orientation="vertical" >
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/eifelturm"
android:orientation="vertical" >
<Button
android:id="@+id/newbutton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:drawableLeft="@android:drawable/ic_menu_camera"
android:text="@string/neuesFoto"
android:gravity="fill"
android:onClick="newPhoto"
></Button>
<ListView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/main_listview">
</ListView>
</LinearLayout>
<com.google.ads.AdView
android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentLeft="true"
app:adSize="BANNER"
app:adUnitId="a1501d20d464e5d"
app:loadAdOnCreate="true" />
</RelativeLayout>