使用retrofit+okhttp+rxjava进行网络请求,在模拟器上运行是没有问题,但是运行到真机上就报以下错误:
Throwing new exception 'length=162; index=1434' with unexpected pending exception: java.lang.ArrayIndexOutOfBoundsException: length=162; index=1434
原因:Instant Run与retrofit冲突
方案:
虽然知道是这个导致的冲突问题,但是目前还没有解决办法,采取折中的方法,把Instant run关闭就不会出现该错误