我正在尝试在我的应用程序中实现AdMob。但不知怎么地,它显示出这个错误,并且由于它,我的R.java文件没有被生成。我已经尝试了所有解决此问题的方法,例如清理、构建、全部构建。但是对我来说,没有一种方法有效。
以下是我的代码片段,其中显示了错误“解析XML时出错:未绑定前缀”。
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
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" android:orientation="vertical"
android:background="@color/bgcolor">
<LinearLayout
android:id="@+id/Linearlayout1"
android:layout_width="fill_parent"
android:layout_height="wrap_content" >
<com.google.ads.AdView android:id="@+id/adView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="XXX"
ads:refreshInterval="60"/>
</LinearLayout>
请帮我一下,我被困住了 :(