Robolectric 没有发现我的清单未通过所有测试

Robolectric not finding my Manifest failing all my tests

当我尝试 运行 我的 roboelectric 测试时,我得到了这个异常:

java.lang.RuntimeException: build/intermediates/manifests/full/release/AndroidManifest.xml not found or not a file; it should point to your project's AndroidManifest.xml

我的测试 class 注释如下:

@RunWith(RobolectricGradleTestRunner.class)
@org.robolectric.annotation.Config(constants = BuildConfig.class, sdk = 21)
@PowerMockIgnore({"org.mockito.*", "org.robolectric.*", "android.*"})
@PrepareForTest({Realm.class})
public class DataJUnitTest{}

所以我所有的测试都因为这个异常而失败,请任何帮助,在此先感谢。

所以,我使用的是 robolectric 3.0 版,更新到 3.2.2 后一切正常