kar
kar

Reputation: 741

Android Gradle 3.0 and "Unresolved reference R" for a local library

I'm struggling to update my project to compile with Android Gradle Plugin 3.0.1. Facts:

What am I missing? Seems pretty straightforward, yet I couldn't find the reason why R is not generated while building the app, yet it is when building the lib directly.

Upvotes: 3

Views: 4255

Answers (1)

kar
kar

Reputation: 741

Turns out the problem was in using symlink to library directory. I modified settings.gradle to point out to the right dir instead:

project(':lib').projectDir = new File('/path/to/the/lib')

Upvotes: 1

Related Questions