R.java消失 [英] R.java disappeared

查看:140
本文介绍了R.java消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近下载了Android支持包,并一直在使用它试图让我的应用程序,在SDK 10运行,使用网格布局。

I recently downloaded the Android Support Package and have been using it trying to get my application, running at SDK 10, to use a GridLayout.

不管怎样,我清理我的项目几次在做这个错误在我的XML文件中,然后当我回到我的类/ src目录,每一个参考R. *是一个错误。

Anyway, I cleaned my project a few times working on this error in my XML files, and then when I went back to my classes in /src, every single reference to R.* was an error.

这发生在我面前,但它通常自我修复,而且还没有。有谁知道该怎么办?

This has happened to me before, but it usually fixes itself, and it has not yet. Does anyone know what to do?

在R.java文件不再是我的/根文件夹。

The R.java file is no longer in my /gen folder.

推荐答案

,有时会在导入另一个项目首先,我建议你来构建它,它会自动创建。

It sometimes happens when you import another project First i suggest you to build it, it will create automatically .

如果它不工作,然后尝试从现有源创建新项目,并指定下载的项目。它的工作对我来说

If it's not working then try to create new project from existing source and specify the downloaded project . It worked for me

希望这对你的作品让我知道。

Hope this works for you let me know..

这篇关于R.java消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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