2012-03-22 7 views
1

방금 ​​ADT-17로 안드로이드를 sdk-r17 및 eclipse로 업데이트했습니다.Admob을 사용하여 강제 종료

<RelativeLayout 
xmlns:android="http://schemas.android.com/apk/res/android" 
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent"> 

<com.google.ads.AdView 
    android:id="@+id/admob" 
    android:layout_alignParentBottom="true" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    ads:adUnitId="xxxxxx" 
    ads:adSize="BANNER" 
    ads:loadAdOnCreate="true"/> 

<ListView 
    android:id="@+id/lv_agent" 
    android:layout_above="@id/admob" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:cacheColorHint="#00000000" 
    android:focusable="true" 
    android:layoutAnimation="@anim/l_slide_right" 
    android:listSelector="@drawable/bg_list_selector" 
    android:divider="#3f3f3f" 

로그 캣 오류 메시지가 : 이제 몹을 사용하는 모든 내 응용 프로그램 (그것은 업데이트하기 전에 잘 작동) 확대 구축하고 실제 장치 또는 에뮬레이터에 하나를 실행 한 후 힘을 여기에

내 XML 레이아웃되어 발생 :

AndroidRuntime(29533): Caused by: java.lang.RuntimeException: Unable to start activity ComponentInfo{net.londatiga.xxx/net.londatiga.xxx.xxx}: android.view.InflateException: Binary XML file line #19: Error inflating class com.google.ads.AdView 

모든 솔루션?

+0

나는 이것을 복제했습니다. 조사 중입니다 ... –

답변

2

이 문제는 Android 프로젝트의 종속 항아리입니다. 솔루션을 볼 것 같습니다 http://android.foxykeep.com/dev/how-to-fix-the-classdefnotfounderror-with-adt-17

+0

이것은 맞습니다. 나는 그것을 직접 확인했다. –

+0

고맙습니다. 이제는 잘 작동합니다. 라이브러리가 새로운 ADT17과 동일한 방식으로 관리되지 않기 때문에이 문제가 발생했습니다. –