Android布局文件-错误

View requires API level 14 (current min is 8):

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" > <GridLayout
android:layout_width="match_parent"
android:layout_height="match_parent" > <ImageView
android:id="@+id/imgCar"
android:layout_width="70dp"
android:layout_height="50dp"
android:layout_column="0"
android:layout_gravity="fill_vertical"
android:layout_marginBottom="5dp"
android:layout_marginRight="15dp"
android:layout_marginTop="5dp"
android:layout_row="0"
android:layout_rowSpan="3" /> <TextView
android:id="@+id/tvModel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_row="0"
android:text="@string/Type"
android:textAppearance="?android:attr/textAppearanceSmall" /> <TextView
android:id="@+id/tvColor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_row="1"
android:text="@string/Style"
android:textAppearance="?android:attr/textAppearanceSmall" /> <TextView
android:id="@+id/tvPrice"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_column="1"
android:layout_row="2"
android:text="@string/price"
android:textAppearance="?android:attr/textAppearanceSmall" />
</GridLayout> </LinearLayout>

<GridLayout>  这一行一直报错,刚开始都运行好好的、、(/ □ \)

其实只要把AndroidManifest.xml文件里面 android:minSdkVersion="14"的数值调成错误信息里面的值即可、、唉

上一篇:Ubuntu install TensorFlow 1.10 + CUDA 9.2 + cuDNN 7.2


下一篇:How To Build Compelling Stories From Your Data Sets