Robolectric with Gradle: Resources not found
I'm trying to run my Robolectric tests together with the new Gradle Android build system, but I'm stuck at accessing the resources of my main project. I split the build into two separate projects to avoid conflicts between the java and the android gradle plugins, so the directory structure looks roughly like this: . ├── build.gradle ├── settings.gradle ├── mainproject │ ├── build │ │ ├── classes │ │ │ └── debug │ ├── build.gradle │ └── src │ └── main │ ├── AndroidManifest.xml │ └── ... └── test ├── build.gradle └── src └── test └── java └── ... └── test ├── MainActivityTest.java ├── Runner