簡體   English   中英

這里不允許使用JetBrain Idea android xml元素

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM