无法从机器人电气的资源中读取



我正试图为android应用程序编写机器人电气测试。当我试图读取配置时,我得到以下错误。

Caused by: java.lang.IllegalArgumentException: Got resource name bool/config_enable from id 2131427329 (0x7f0b0001), but found no resource by that name
at com.xtremelabs.robolectric.res.BoolResourceLoader.getValue(BoolResourceLoader.java:27)
at com.xtremelabs.robolectric.res.ResourceLoader.getBooleanValue(ResourceLoader.java:462)
at com.xtremelabs.robolectric.shadows.ShadowResources.getBoolean(ShadowResources.java:193)
at android.content.res.Resources.getBoolean(Resources.java)

我会说这是https://github.com/robolectric/robolectric/issues/346。你用的是哪个版本的robolelectric ?

最新更新