首页 文章

这里不允许使用JetBrain Idea android xml元素

提问于
浏览
9

这里不允许使用JetBrain Idea android xml元素 .

I found this tutorial but I still don't understand how to resolve this problem

我有这样的东西http://clip2net.com/s/2I0HI?dw=1

<GridLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:columnCount="10"
    android:rowCount="10">

    <TextView
        style="@style/GlobalTextView"
        android:layout_gravity="right"
        android:text="@string/lbl_player_kicking_kicking"
        android:background="@drawable/bg_top"
        android:layout_column="1"
        android:layout_row="1"
        android:padding="10dp" />

    <TextView
        style="@style/GlobalTextView"
        android:layout_gravity="right"
        android:background="@drawable/bg_bottom"
        android:text="@string/lbl_player_receiving_rec"
        android:layout_column="1"
        android:layout_row="2"
        android:padding="10dp" />
    </GridLayout >

1 回答

  • 2

    确保您使用的是SDK级别14或更高版本的项目 .

    打开项目属性,文件>项目结构,然后选择项目 . 在Project SDK下,它必须说Android 4.0平台(或更新版本) .

相关问题