저는 Android 프로그래밍을 처음 접했고 문제가 발생했습니다. main.xml 파일을 변경하면 R.java 클래스에서 다른 모든 클래스에 오류가 발생합니다. + id, attr, drawable처럼. 오류는 말한다 : 나는 왜이 무엇입니까Android : 토큰에 R 클래스 구문 오류가 발생했습니다.
Syntax error on tokens, delete these tokens
? 최신 JDK, 최신 SDK, Win 7, Eclipse, Android 2.3.3을 사용합니다.
감사합니다.
<?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>