Gradle Robolectric Resources NotFoundException in Testing
问题 I've already knew that this issue has been asked before but I can't solve this problem. I am able to compile and apply test with jUnit, Robolectric and Gradle. The issue or error comes when I try to test an Activity or get a resource. Every time I've got the same issue: android.content.res.Resources$NotFoundException: unknown resource Resources$NotFoundException: no such theme PageActivity startPageActivity = Robolectric.buildActivity(PageActivity.class).create().get(); Context context =