kotlin 错误解决

使用retrofit+okhttp+rxjava进行网络请求,在模拟器上运行是没有问题,但是运行到真机上就报以下错误:

Throwing new exception 'length=162; index=1434' with unexpected pending exception: java.lang.ArrayIndexOutOfBoundsException: length=162; index=1434

原因:Instant Runretrofit冲突

方案:

虽然知道是这个导致的冲突问题,但是目前还没有解决办法,采取折中的方法,把Instant run关闭就不会出现该错误

猜你喜欢

转载自blog.csdn.net/freak_csh/article/details/89677385