使用普通android.app.AlertDialog可以使用ShadowAlertDialog.getLatestAlertDialog(),但如果使用支持库android.support.v7.app.AlertDialog(AlertDialog.java:240) at android.app.Dialog.show(Dialog.java:262)
at org.robo
在使用新的Appcompat支持库时,我无法运行Robolectic测试,因为Android已经发布了。我跟踪了:
我的配置(蒸馏)是: compileSdkVersion 21java.lang.RuntimeException: Could not find any resource from reference ResN