IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation in Android unit test
问题 I'm struggling getting a unit test in Android Studio to work on some existing code. I'm kepp getting the IllegalAccessError and can't seem to find a solution for it. Any help is very needed. I'm using Android Studio 1.1.0, gradle 1.1.0 and Espresso 2.0. The stacktrace: java.lang.NoClassDefFoundError: com/hoganas/eclino/activities/BikeActivity at com.hoganas.eclino.activities.ScanActivity$1.onItemClick(ScanActivity.java:49) at android.widget.AdapterView.performItemClick(AdapterView.java:308)