Hi, I have created this thread Adding external resources to sourceSets in Android after yours. It seems we have a similar configuration and probably a similar problem. Can you please elaborate on your question? Have you being able to make it work with your relative paths?
However, yours applies to java files. My issue applies to resources. But rest looks the same thing.