R.java消失java

2023-09-08 08:49:53 作者:闪闪惹人爱|▍

我最近下载了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..