nenick / AndroidStudioAndRobolectric

Minimal Robolectric and Android Studio example
139 stars 29 forks source link

Package R does not exist #6

Closed nenick closed 9 years ago

nenick commented 9 years ago

The issue is tracked here https://code.google.com/p/android/issues/detail?id=144573

A workaround is to add following line to the module build.gradle android.sourceSets.test.java.srcDirs += "build/generated/source/r/debug"

emartynov commented 9 years ago

Thanks for sharing!

nenick commented 9 years ago

Fixed with gradle android plugin 1.2.+