2012-03-22 48 views
1

私はADT-17でsdk-r17とeclipseで自分のAndroidを更新しました。今のAdMobを使用するすべての私のアプリケーションは、ここで(それは更新前にうまく働いていた)実際のデバイスまたはエミュレーター上のいずれかAdmobを使用して強制終了

それを構築し、実行した後に近い力を発生させた私のxmlレイアウトです:

<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" 

logcatのエラーメッセージがされ:

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

解決策のためのThanx、それは今よく働く。ライブラリが新しいADT17と同じ方法で管理されないため、この問題が発生しました。 –

関連する問題