android-fragmentscenario

Fragment testing error: android.view.InflateException: Binary XML file line #16: Binary XML file line #16: Error inflating class <unknown>

早过忘川 提交于 2020-04-17 22:45:49
问题 I am trying to test a fragment, following these instructions: https://developer.android.com/training/basics/fragments/testing However I am getting the following crash when calling launchFragmentInContainer from my test. Stacktrace: android.view.InflateException: Binary XML file line #16: Binary XML file line #16: Error inflating class <unknown> Caused by: android.view.InflateException: Binary XML file line #16: Error inflating class <unknown> Caused by: java.lang.reflect