I am trying to get working R.java generation to project in gen folder. Actually, the application builds, when using maven build, however eclipse finds error, because it can’t resolve R.java file (which actually is being put in /target/generated-sources/r/R.java location after each build). What is the suggested way to solve the problem?
Share
The recommended way is to use the Maven Integration for Android Development Tools and the Maven Android Plugin provides instructions. From the Eclipse Integration page:
So jump to the M2Eclipse Android Integration project page and then to the Getting Started guide for very detailed instructions.
With the right tooling, the directory of the generated code should be added automatically as source directory under Eclipse.