Android布局文件-错误
16lz
2021-01-23
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>
其实只要把AndroidManifest.xml文件里面android:minSdkVersion="14"的数值调成错误信息里面的值即可、、唉
更多相关文章
- android 将资源文件复制到android系统中去 raw assert
- android打开文件方法
- android用代码获取布局文件
- 清除Mac中Android studio的配置文件
- Android读取assests目录下文件
- android 资源文件
- Android将获取到文件的uri转换为字符串的路径