1. Are you ready for the Galaxy S20? Here is everything we know so far!

error: not well-formed (invalid token).

Discussion in 'Android Development' started by Nagori, Feb 7, 2019.

  1. Nagori

    Nagori Newbie
    Thread Starter

    Please help I've got an error
    error: not well-formed (invalid token).
    Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #1

    here is my XML code

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".newsfeed">
    <LinearLayout
    android:layout_width="match_parent"
    android:layout_height="70dp"
    android:layout_marginTop="510dp"
    android:eek:rientation="vertical"
    android:background="#56ACDF"
    android:layout_alignParentStart="true"
    android:layout_alignParentLeft="true">
    <ImageView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:srcCompat="@drawable/home"
    android:layout_marginLeft="25dp"
    android:layout_marginTop="12dp"
    android:contentDescription="@String/home_icon"
    android:layout_marginStart="25dp"/>
    <TextView android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@String/home"
    android:textColor="#fff"
    android:textSize="12sp"
    android:layout_marginLeft="25dp"
    android:layout_marginTop="1.5dp"
    android:layout_marginStart="25dp"/>
    <ImageView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:srcCompat="@drawable/pencilruler"
    android:layout_marginLeft="95dp"
    android:layout_marginTop="-38dp"
    android:contentDescription="@String/plannericon"
    android:layout_marginStart="95dp"/>

    <TextView android:layout_width="wrap_content"
    android:layout_height="12dp"
    android:text="@String/classes"
    android:textColor="#fff"
    android:textSize="12sp"
    android:layout_marginLeft="86dp"
    android:layout_marginTop="1.2dp"
    android:layout_marginStart="86dp"/>

    <ImageView
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    app:srcCompat="@drawable/planner"
    android:layout_marginLeft="160dp"
    android:layout_marginTop="-38dp"
    android:contentDescription="@String/classesicon"
    android:layout_marginStart="160dp"/>

    <TextView android:layout_width="wrap_content"
    android:layout_height="12dp"
    android:text="@String/planner"
    android:textColor="#fff"
    android:textSize="12sp"
    android:layout_marginLeft="156dp"
    android:layout_marginTop="1.1dp"
    android:layout_marginStart="156dp"/>

    <ImageView
    android:layout_width="26dp"
    android:layout_height="28dp"
    app:srcCompat="@drawable/profile"
    android:layout_marginLeft="235dp"
    android:layout_marginTop="-39dp"
    android:contentDescription="@String/profileicon"
    android:layout_marginStart="235dp"/>

    <TextView android:layout_width="wrap_content"
    android:layout_height="12dp"
    android:text="@String/profile"
    android:textColor="#fff"
    android:textSize="12sp"
    android:layout_marginLeft="233dp"
    android:layout_marginTop="0.5dp"
    android:layout_marginStart="233dp"/>
    <ImageView
    android:layout_width="wrap_content"
    android:layout_height="28dp"
    app:srcCompat="@drawable/chats"
    android:layout_marginLeft="315dp"
    android:layout_marginTop="-38dp"
    android:contentDescription="@String/chaticon"
    android:layout_marginStart="315dp"/>

    <TextView android:layout_width="wrap_content"
    android:layout_height="11dp"
    android:text="@String/chats"
    android:textColor="#fff"
    android:textSize="12sp"
    android:layout_marginLeft="315dp"
    android:layout_marginTop="-1.1dp"
    android:layout_marginStart="315dp"/>

    </LinearLayout>

    <ImageView android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:src="@drawable/news"
    android:layout_marginTop="40dp"
    android:layout_marginLeft="105dp"
    android:contentDescription="@String/newsicon"
    android:layout_marginStart="105dp"/>

    <TextView android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@String/welcome_to_mana_newsfeed"
    android:textColor="#24292D"
    android:textSize="22sp"
    android:layout_marginTop="210dp"
    android:layout_marginLeft="50dp"
    android:layout_marginStart="50dp"/>

    <TextView android:layout_width="270dp"
    android:layout_height="70dp"
    android:text="@String/newsFeed"
    android:textColor="#5F6162"
    android:layout_marginTop="260dp"
    android:layout_marginLeft="60dp"
    android:textSize="15sp"
    android:layout_marginStart="60dp"/>


    </RelativeLayout>
     


  2. Best Answer:
    Post #2 by Deleted User, Feb 7, 2019 (3 points)
  3. Deleted User

    Deleted User Guest

    You're missing a closing </LinearLayout> tag

    Code (Text):
    1.  
    2.   ...
    3.   </LinearLayout>
    4. </RelativeLayout>
    5.  
     
    GameTheory and Unforgiven like this.
  4. Nagori

    Nagori Newbie
    Thread Starter

    Thank you so much sir ☺ It is such a silly mistake.
     
Loading...
Similar Threads - error formed invalid
  1. Sunil Eapen
    Replies:
    2
    Views:
    313
  2. meadnroid2
    Replies:
    6
    Views:
    215
  3. Bahria Town Rawalpindi
    Replies:
    13
    Views:
    276
  4. SteveD_Rdg
    Replies:
    0
    Views:
    313
  5. Christopher Clayton
    Replies:
    0
    Views:
    131
  6. Waldek
    Replies:
    0
    Views:
    177
  7. Danz47
    Replies:
    0
    Views:
    824
  8. HeadScratcher
    Replies:
    6
    Views:
    1,103
  9. CharlesLewis
    Replies:
    11
    Views:
    675
  10. Doulos Adonai
    Replies:
    1
    Views:
    392

Share This Page

Loading...