java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation getting while running test project?

后端 未结 9 1840
难免孤独
难免孤独 2020-11-29 06:37

I have implemented project by using third party library(zxing) after implementation project is working fine then after I have written one test project to unit test my projec

9条回答
  •  清歌不尽
    2020-11-29 06:59

    If you do not specifically need a device with low API version (<=19), you can leave transitive dependencies and create an emulator with higher API version.

    This happens only on devices which API is lower than Lollipop (API 21). Running tests on emulators higher/equal to API 21 runs normally, without issues.

提交回复
热议问题