androidTestCompile 'com.github.tmurakami:dexopener:0.10.1'
androidTestCompile deps.junit
androidTestCompile deps.assertjCore
androidTestCompile deps.mockitoKotlin, { exclude group: "net.bytebuddy" } // DexMaker has it"s own MockMaker
3. Start up the emulator whose API version is 19
4. Run `./gradlew clean connectedDebugAndroidTest`
Console log:
Starting 18 tests on Nexus_5_API_19(AVD) - 4.4.2
burrows.apps.example.gif.presentation.adapter.GifAdapterTest > testOnBindViewHolderOnAdapterItemClick[Nexus_5_API_19(AVD) - 4.4.2] FAILED
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at burrows.apps.example.gif.presentation.adapter.GifAdapter.onCreateViewHolder(GifAdapter.kt:32)
burrows.apps.example.gif.presentation.adapter.GifAdapterTest > testGetLocationShouldReturnCorrectValues[Nexus_5_API_19(AVD) - 4.4.2] FAILED
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at burrows.apps.example.gif.presentation.adapter.GifAdapter.onCreateViewHolder(GifAdapter.kt:32)
burrows.apps.example.gif.presentation.adapter.GifAdapterTest > testRemoveLocationObjectShouldReturnCorrectValues[Nexus_5_API_19(AVD) - 4.4.2] FAILED
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at burrows.apps.example.gif.presentation.adapter.GifAdapter.onCreateViewHolder(GifAdapter.kt:32)
burrows.apps.example.gif.presentation.adapter.GifAdapterTest > testGetItem[Nexus_5_API_19(AVD) - 4.4.2] FAILED
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at burrows.apps.example.gif.presentation.adapter.GifAdapter.onCreateViewHolder(GifAdapter.kt:32)
burrows.apps.example.gif.presentation.adapter.GifAdapterTest > testGetItemCountShouldReturnCorrectValues[Nexus_5_API_19(AVD) - 4.4.2] FAILED
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at burrows.apps.example.gif.presentation.adapter.GifAdapter.onCreateViewHolder(GifAdapter.kt:32)
burrows.apps.example.gif.presentation.adapter.GifAdapterTest > onViewRecycled[Nexus_5_API_19(AVD) - 4.4.2] FAILED
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at burrows.apps.example.gif.presentation.adapter.GifAdapter.onCreateViewHolder(GifAdapter.kt:32)
burrows.apps.example.gif.presentation.adapter.GifAdapterTest > testOnCreateViewHolder[Nexus_5_API_19(AVD) - 4.4.2] FAILED
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at burrows.apps.example.gif.presentation.adapter.GifAdapter.onCreateViewHolder(GifAdapter.kt:32)
burrows.apps.example.gif.presentation.adapter.GifAdapterTest > testGetItemShouldReturnCorrectValues[Nexus_5_API_19(AVD) - 4.4.2] FAILED
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at burrows.apps.example.gif.presentation.adapter.GifAdapter.onCreateViewHolder(GifAdapter.kt:32)
burrows.apps.example.gif.presentation.adapter.GifAdapterTest > testAddObjectShouldReturnCorrectValues[Nexus_5_API_19(AVD) - 4.4.2] FAILED
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at burrows.apps.example.gif.presentation.adapter.GifAdapter.onCreateViewHolder(GifAdapter.kt:32)
burrows.apps.example.gif.presentation.adapter.GifAdapterTest > testRemoveLocationShouldReturnCorrectValues[Nexus_5_API_19(AVD) - 4.4.2] FAILED
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at burrows.apps.example.gif.presentation.adapter.GifAdapter.onCreateViewHolder(GifAdapter.kt:32)
burrows.apps.example.gif.presentation.adapter.GifAdapterTest > testGetListCountShouldReturnCorrectValues[Nexus_5_API_19(AVD) - 4.4.2] FAILED
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at burrows.apps.example.gif.presentation.adapter.GifAdapter.onCreateViewHolder(GifAdapter.kt:32)
burrows.apps.example.gif.presentation.adapter.GifAdapterTest > testAddLocationObjectShouldReturnCorrectValues[Nexus_5_API_19(AVD) - 4.4.2] FAILED
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at burrows.apps.example.gif.presentation.adapter.GifAdapter.onCreateViewHolder(GifAdapter.kt:32)
burrows.apps.example.gif.presentation.adapter.GifAdapterTest > testAddCollectionShouldReturnCorrectValues[Nexus_5_API_19(AVD) - 4.4.2] FAILED
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at burrows.apps.example.gif.presentation.adapter.GifAdapter.onCreateViewHolder(GifAdapter.kt:32)
burrows.apps.example.gif.presentation.adapter.GifAdapterTest > testClearShouldClearAdapter[Nexus_5_API_19(AVD) - 4.4.2] FAILED
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at burrows.apps.example.gif.presentation.adapter.GifAdapter.onCreateViewHolder(GifAdapter.kt:32)
burrows.apps.example.gif.presentation.adapter.GifAdapterTest > testRemoveObjectShouldReturnCorrectValues[Nexus_5_API_19(AVD) - 4.4.2] FAILED
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at burrows.apps.example.gif.presentation.adapter.GifAdapter.onCreateViewHolder(GifAdapter.kt:32)
burrows.apps.example.gif.presentation.main.MainActivityTest > testTrendingThenClickOpenDialog[Nexus_5_API_19(AVD) - 4.4.2] SKIPPED
burrows.apps.example.gif.presentation.main.MainActivityTest > testTrendingResultsThenSearchThenBackToTrending[Nexus_5_API_19(AVD) - 4.4.2] FAILED
java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
at burrows.apps.example.gif.presentation.main.MainActivity.onCreate(MainActivity.kt:26)
Tests on Nexus_5_API_19(AVD) - 4.4.2 failed: Instrumentation run failed due to 'java.lang.IllegalAccessError'
FAILURE: Build failed with an exception.
The steps to reproduce:
Apply the following patch in the project root
Console log: