Android Studio 3.0 Beta2 classpath \'com.android.tools.build:gradle:3.0.0-beta3\' testCompile \'org.robolectric:robolectric:3.4.2\'
Test class that
(for anyone that might be looking for a solution to a similar problem)
Be sure to use
RuntimeEnvironment.application
and not:
RuntimeEnvironment.systemContext
when you're trying to resolve resources "manually".
That's one case in which Resources$NotFoundException might show up with Robolectric.
Resources$NotFoundException
Robolectric