R. Java disappeared

I recently downloaded the Android Support Package and used it, trying to force my SDK 10 application to use GridLayout.

In any case, I cleared the project several times from this error in my XML files, and then when I returned to my classes in / src, every link to R. * was an error.

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

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

+5
source share
6 answers

Sometimes it happens when you import another project. First I suggest you create it, it will be created automatically.

, .

, , ..

+5

, XML , R.java . XML , , (, ..). , .

+5

Adnroid Tools>Fix Project. gen/R.java

+2

:

Eclipse, = > Project > Android Tools > Fix Project

, , R.java gen/R.java.

+2

. , , , , .

  • - ( Project, )
  • , XML . "x", XML Project exlporer, . , "" ( "Windows" f/f)
  • , , , , , , , .

Eclipse, Eclipse .

+1
source

This happens if you have an error in the res folder . Correct the error first, then do:

Project → Clear → Ok

Et voila!

+1
source

All Articles