Robolectric InflateException when using v7 support library AlertDialog
问题 Using a normal android.app.AlertDialog works with ShadowAlertDialog.getLatestAlertDialog() , but if you use a support library android.support.v7.app.AlertDialog , then this exception happens: android.view.InflateException: XML file app/build/intermediates/res/qa/debug/layout/abc_alert_dialog_material.xml line #-1 (sorry, not yet implemented): Error inflating class android.support.v7.internal.widget.DialogTitle at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:713) at