Fragment testing error: android.view.InflateException: Binary XML file line #16: Binary XML file line #16: Error inflating class <unknown>
问题 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