views:

220

answers:

2
  • I am trying to run android sample applications using intellij idea and R.java file is missing form notepad samples source directory.
+2  A: 

Use Build | Make. Actually, IDEA generates R.java file automatically every time you make a change in any XML file under the /res directory.

UPDATE: /gen directory must be present in the project and also configured as a Source root in IDEA module so that it can resolve the IDs in your source code.

CrazyCoder
+2  A: 

Make sure you have a 'gen' folder in your project root. If you don't, make one yourself.

Jim Blackler