eclipse - Android: R-class Syntax error on tokens -


i'm new android programming , i've got problem, when change main.xml file error in r.java class on other classes, +id, attr, drawable. error says:

syntax error on tokens, delete these tokens 

why getting this? use latest jdk, latest sdk, win 7, eclipse, android 2.3.3

thanks help.

this main.xml code:

<?xml version="1.0" encoding="utf-8"?> <relativelayout xmlns:android="http://schemas.android.com/apk/res/android"     android:orientation="vertical"     android:layout_width="fill_parent"     android:layout_height="fill_parent"     >     <textview           android:id="@+id/tasks_title"         android:layout_width="fill_parent"          android:layout_height="wrap_content"          android:text="@string/tasks"         />        <textview           android:id="@++id/task_title_text"         android:layout_width="fill_parent"          android:layout_height="wrap_content"          android:layout_below="@id/tasks_title"         android:layout_above="@+id/add_button"          />       <button           android:id="@id/add_button"         android:layout_width="fill_parent"          android:layout_height="wrap_content"          android:text="@string/add_task"              android:layout_alignparentbottom="true"         />   </relativelayout> 

the second textview got 2 + on id. remove 1 , should fine.

you may have clean project rebuild automatically generated ressources. so, select "project->clean" eclipse.

this error may confusing when lots of errors indicating drawables, ids , such broken. reason simple: once creation of 1 ressource fails, whole ressource generation cancelled. @ ressources edited , check syntax. error there.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -