Search code examples
androidr.java-file

R.java disappeared


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.

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?

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


Solution

  • 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..