Android 使用Admob强制关闭
我刚刚用sdk-r17更新了android,用ADT-17更新了eclipse。现在,我所有使用admob的应用程序在构建并在真实设备或模拟器上运行后都会导致强制关闭(在更新之前它运行良好) 以下是我的xml布局:Android 使用Admob强制关闭,android,admob,Android,Admob,我刚刚用sdk-r17更新了android,用ADT-17更新了eclipse。现在,我所有使用admob的应用程序在构建并在真实设备或模拟器上运行后都会导致强制关闭(在更新之前它运行良好) 以下是我的xml布局: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads" an
<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"
有什么解决方案吗?这个问题是Android项目中的一个依赖项JAR。解决方案似乎看到了我也复制了这一点。我们正在调查…Thanx的解决方案,现在效果很好。出现此问题的原因是库的管理方式与新ADT17不同。
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