[英]JetBrain Idea android xml element is not allowed here
這里不允許使用JetBrain Idea android xml元素。
我有這樣的東西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 >
確保您使用的是SDK級別14或更高版本的項目。
打開項目屬性, File > Project Structure,然后選擇Project 。 在Project SDK下,它必須說Android 4.0平台 (或更新版本)。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.