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

It seems that the aar/classes.jar should NOT include the R class #235

Merged
merged 1 commit into from
Sep 27, 2013

Conversation

markrileybot
Copy link
Contributor

I don't think the aar/classes.jar should include the R classes. If the R is included, dex will fail with an error about finding the same R in multiple jars.

I haven't really found anyone saying this explicitly nor any docs that say as much. I do have a gradle build that depends on an aar that is generated with this mojo that will fail if R is in the classes.jar. I also know that the android gradle build tools combine resources. The only other evidence I have that hints at not including R is the following discussion on google groups:

https://groups.google.com/forum/#!msg/adt-dev/uWppd9l8UNw/w6Q_9N13mLcJ

…uildConfig. If the R is included, dex will fail with an error about finding the same R in multiple jars.

I haven't really found anyone saying this explicity nor any docs that say as much.  I do have a gradle build that depends on an aar that is generated with this mojo that will fail if R is in the classes.jar.  I also know that the android gradle build tools combine resources.  The only other evidence I have that hints at not including R is the following discussion on google groups:

https://groups.google.com/forum/#!msg/adt-dev/uWppd9l8UNw/w6Q_9N13mLcJ
@Shusshu
Copy link
Member

Shusshu commented Sep 27, 2013

Yup that seems correct, at the time I thought it had to be included.

Thanks for the fix

@simpligility
Copy link
Collaborator

Great... thanks. We still need to get that sample project going.. just wondering if I should cut a release with this and flag the aar support as experiemental? wdyt?

mosabua added a commit that referenced this pull request Sep 27, 2013
It seems that the aar/classes.jar should NOT include the R class
@mosabua mosabua merged commit 4d3b03c into simpligility:master Sep 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants