Alex Rivera | Logout

How to generate R.java

Asked 2011-01-06T19:50:54.213
15

I downloaded few source codes from Google source codes.

I executed them on Eclipse but R.java file is not created and therefore I got many errors saying that R cannot be resolved. There is no main.xml in layout too. Some other XML files are there. How can I execute these programs?

Edit
Report

1 Answer

0

If your build.xml includes the "-resource-src" target (which it will if you include $SDK_DIR/tools/main_rules.xml or lib_rules.xml) you can rebuild it with ant.

answered 2011-04-28T20:47:40.263

Your Answer