좋아요, 질문해서 죄송합니다. 이 문제를 해결하는 방법을 모릅니다. 이클립스에서 새 프로젝트를 만들고 res / layout 폴더에 일부 XML 파일을 넣은 다음 기존 Java 파일을 src 폴더로 끌어 놓습니다. 프로젝트를 정리하여 R.java를 생성하려고했는데 다음과 같은 오류 메시지가 나타납니다.
[2014-02-10 18:28:01 - EventPlanner] W/ResourceType( 7228): ResXMLTree_node size 0xffffffff or headerSize 0xffff is not on an integer boundary.
[2014-02-10 18:28:01 - EventPlanner] E:\Andika\workspaces\EventPlanner\res\layout\activities_list.xml:6: error: Error: No resource found that matches the given name (at 'id' with value '@id/activity_id').
[2014-02-10 18:28:01 - EventPlanner] E:\Andika\workspaces\EventPlanner\res\layout\activities_list.xml:7: error: Error: No resource found that matches the given name (at 'id' with value '@id/chk_box').
[2014-02-10 18:28:01 - EventPlanner] E:\Andika\workspaces\EventPlanner\res\layout\activities_list.xml:10: error: Error: No resource found that matches the given name (at 'id' with value '@id/res_text').
.....
그리고 R.java 파일이 생성되지 않았습니다. 일식을 닫았다가 다시 열려고했지만 문제가 해결되지 않습니다. 내가 뭐 놓친 거 없니? 감사합니다
편집 : 이것은 내 XML 레이아웃 중 하나입니다.
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout android:orientation="vertical" android:background="@color/black" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:orientation="vertical" android:paddingLeft="10.0dip" android:paddingTop="10.0dip" android:paddingRight="10.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:background="@drawable/cell_shape_login_form" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="center" android:id="@id/imageView1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_action_person" />
<EditText android:textColor="@color/black" android:id="@id/username" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="Username" android:ems="20" android:layout_weight="1.0" android:inputType="textPersonName" />
</LinearLayout>
</LinearLayout>
<LinearLayout android:orientation="vertical" android:paddingLeft="10.0dip" android:paddingTop="5.0dip" android:paddingRight="10.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<LinearLayout android:orientation="horizontal" android:background="@drawable/cell_shape_login_form" android:layout_width="fill_parent" android:layout_height="wrap_content">
<ImageView android:layout_gravity="center" android:id="@id/imageView2" android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="@drawable/ic_action_secure" />
<EditText android:textColor="@color/black" android:id="@id/password" android:layout_width="fill_parent" android:layout_height="wrap_content" android:hint="Password" android:ems="20" android:layout_weight="1.0" android:inputType="textPassword">
<requestFocus />
</EditText>
</LinearLayout>
</LinearLayout>
<TextView android:textColor="@color/BlueDefault" android:id="@id/TextView01" android:paddingLeft="10.0dip" android:paddingRight="10.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Login as" />
<LinearLayout android:orientation="vertical" android:paddingLeft="10.0dip" android:paddingTop="5.0dip" android:paddingRight="10.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content">
<Spinner android:entries="@array/account_type" android:id="@id/spinner1" android:background="@drawable/cell_shape_login_form" android:paddingLeft="10.0dip" android:paddingTop="5.0dip" android:paddingRight="10.0dip" android:paddingBottom="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" android:prompt="@string/manager" />
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:paddingLeft="5.0dip" android:paddingRight="5.0dip" android:layout_width="fill_parent" android:layout_height="wrap_content" style="?android:attr/buttonBarStyle">
<Button android:id="@id/cancel" android:background="@drawable/button_clicked" android:layout_width="0.0dip" android:layout_height="wrap_content" android:text="Cancel" android:layout_weight="0.5" style="?android:attr/buttonBarButtonStyle" />
<Button android:id="@id/signin" android:background="@drawable/button_clicked" android:layout_width="0.0dip" android:layout_height="wrap_content" android:text="Sign in" android:layout_weight="0.5" style="?android:attr/buttonBarButtonStyle" />
</LinearLayout>
<TextView android:textColor="@color/BlueDefault" android:id="@id/signup" android:paddingLeft="10.0dip" android:paddingRight="10.0dip" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Don't have any account? click here to sign up" />
</LinearLayout>
xml 파일에서 오류가 발생하는 곳.
1) 전체 ID를 삭제하고 새 ID 이름으로 다시 이름을 바꿉니다.
2) 스타일 및 배경 리소스를 설정하는 동안 오류가 발생하는 것을 알 수 있습니다. xml 파일에서 삭제하고 다시 정의하고 프로젝트를 정리하십시오.
문제가 해결되기를 바랍니다 .....
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다