我还不断地一遍又一遍地得到了同样的错误在我的计划,我不能找出如何解决它。 R 1不能被解析到一个错误。我试图建立我的项目,我也没有进口涉及.R?请问有谁知道如何解决它?
I have constantly gotten the same error over and over in my program and i can't find out how to fix it. R cannot be resolved to an error. I have tried to build my project and i have no imports that involve .R? Would anyone know how to fix it?
下面是我的XML文件,我似乎无法发现任何错误......
Here's my xml files i can't seem to find anything wrong....
strings.xml中 远程文档 远程文档 患者模式 医生模式 关于 出口 简单模式 详细模式 关于远程文档 \ 远程文档是一个应用程序,它允许用户梅开二度分析 多久他们用自己的事情
strings.xml Remote Doc Remote Doc Patient Mode Doctor Mode About Exit Simple Mode Detailed Mode About Remote Doc \ Remote Doc is an application that allows a brace user analyze how often they use their thing
main.xml中
main.xml
<!-- Patient Option -->
<Button android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:text="@string/patientButton"
android:id="@+id/patientButton">
</Button>
<!-- Doctor Option -->
<Button android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/doctorButton"
android:layout_weight="1"
android:id="@+id/doctorButton">
</Button>
<!-- Exit Mode -->
<Button android:text="@string/exit"
android:layout_weight="1"
android:id="@+id/exit"
android:layout_width="fill_parent"
android:layout_height="wrap_content"></Button>
<!-- About Mode -->
<Button android:text="@string/aboutButton"
android:layout_weight="1"
android:id="@+id/aboutButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"></Button>
</LinearLayout>
/>
main.xml-土地
main.xml- land
android:text="@string/mainTitle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginBottom="20dip"
android:textSize="24.5sp"/>
<TableLayout
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_gravity="center"
android:stretchColumns="*">
<TableRow>
<Button
android:text="@string/patientButton"
android:id="@+id/patientButton"/>
<Button
android:text="@string/doctorButton"
android:id="@+id/doctorButton"/>
</TableRow>
<TableRow>
<Button
android:text="@string/aboutButton"
android:id="@+id/aboutButton"/>
<Button
android:text="@string/exit"
android:id="@+id/exit"/>
</TableRow>
</TableLayout>
</LinearLayout>
这是一个非常普遍的问题。第一次尝试通过Project>清洁清洁您的项目。
This is a really common problem. First try cleaning your project by going to Project > Clean.
如果还是不行,请尝试建议由这一个similar问题
If that doesn't work, try one of the recommendations from this similar question