Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JetBrain Idea android xml element is not allowed here

JetBrain Idea android xml element is not allowed here.

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

I got something like this 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 >
like image 629
Kostya Rudenko Avatar asked Jan 14 '13 10:01

Kostya Rudenko


1 Answers

Make sure you are using SDK level 14 or up with your project.

Open project properties, File > Project Structure and select Project. Under Project SDK it must say Android 4.0 platform (or newer).

like image 171
S.D. Avatar answered Sep 27 '22 17:09

S.D.