goodev / android-unused-resources

Automatically exported from code.google.com/p/android-unused-resources
1 stars 0 forks source link

Cannot find R.java for maven builds #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I get the following error when trying to use the tool in a project built by 
maven.

    You must first build your project to generate R.java

See http://code.google.com/p/roboguice/source/browse/#hg%2Fastroboy for an 
example project, which can be built by running "mvn install"

Original issue reported on code.google.com by m...@niskala.org on 17 Sep 2012 at 4:58

GoogleCodeExporter commented 9 years ago
The difference is that maven puts R.java in:
./target/generated-sources/r/...
whereas eclipse puts it in:
./gen/...

Original comment by swinginc...@gmail.com on 12 Jun 2013 at 2:54

GoogleCodeExporter commented 9 years ago
You can work around this by creating a symlink:
ln -s target/generated-sources/r gen

Original comment by swinginc...@gmail.com on 12 Jun 2013 at 4:09