为什么我总是有问题,其中R没有解决? [英] Why do I keep having problems with R not being resolved?

查看:117
本文介绍了为什么我总是有问题,其中R没有解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我还不断地一遍又一遍地得到了同样的错误在我的计划,我不能找出如何解决它。 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.

如果还是不行,请尝试建议由这一个<一个href="http://stackoverflow.com/questions/5780822/r-cannot-be-resolved-android-no-import-android-r-statement">similar问题

If that doesn't work, try one of the recommendations from this similar question

这篇关于为什么我总是有问题,其中R没有解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆