从别的地方迁移过来后报错,我就clean了一番,然后出现以下提示。
The following classes could not be found:
- Gallery (Change to android.widget.Gallery, Fix Build Path, Edit XML)我的xml文档如下:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/backp"
android:gravity="top"
tools:context=".MainActivity" > <TextView
android:id="@+id/textView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="TextView"
android:textColor="#aaaaaa"
android:textSize="20sp" /> <Gallery
android:id="@+id/gallery1"
android:layout_width="match_parent"
android:layout_height="320dp"
android:layout_below="@+id/textView1"
android:layout_centerHorizontal="true"
android:layout_marginTop="14dp" /></RelativeLayout>求解。同时为什么我看到别人的XML文件下Gallery标签前会加上包名??
The following classes could not be found:
- Gallery (Change to android.widget.Gallery, Fix Build Path, Edit XML)我的xml文档如下:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/backp"
android:gravity="top"
tools:context=".MainActivity" > <TextView
android:id="@+id/textView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="TextView"
android:textColor="#aaaaaa"
android:textSize="20sp" /> <Gallery
android:id="@+id/gallery1"
android:layout_width="match_parent"
android:layout_height="320dp"
android:layout_below="@+id/textView1"
android:layout_centerHorizontal="true"
android:layout_marginTop="14dp" /></RelativeLayout>求解。同时为什么我看到别人的XML文件下Gallery标签前会加上包名??
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货