Robolectric: Resources$NotFoundException: String resource ID with Android Gradle Plugin 3

后端 未结 8 1693
别那么骄傲
别那么骄傲 2020-12-15 03:08
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

8条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-15 03:34

    You can also try @Config(manifest = "/src/main/AndroidManifest.xml") in the case that you can not simply include the resources as some projects tests will fail with that included.

提交回复
热议问题