Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find R.java for maven builds #23

Open
GoogleCodeExporter opened this issue Apr 25, 2016 · 2 comments
Open

Cannot find R.java for maven builds #23

GoogleCodeExporter opened this issue Apr 25, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant