0

Sometimes R cannot be generated. Fine. But where is the error message describing what prevented R from being generated?

In eclipse problems all I see is that the R cannot be found. I don't see any messages anywhere saying why it was not generated. This is absurd.

gitright
  • 277
  • 1
  • 3
  • 10
  • Clean your project. If that doesn't work, check your `/res` folder. The problem mostly lies in the xml code. – Vikram Jul 20 '13 at 01:03
  • my point is there must be something it did not like. Why does it not report the error? – gitright Jul 20 '13 at 01:15
  • I know what you mean. `R cannot be generated` error makes eclipse look like I stepped on a mine in minesweeper. – Vikram Jul 20 '13 at 01:27

2 Answers2

0

In eclipse go to Windows>ShowView>Problems -The error should be shown in this view

arjoan
  • 1,849
  • 2
  • 20
  • 39
0

That means resources failed to compile, such as menu or layout resources. If you rebuild the project (Project >> Clean in Eclipse) it'll output any compilation errors, and R will generate if you rebuild again after fixing those errors.

afollestad
  • 2,929
  • 5
  • 30
  • 44