使用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关闭就不会出现该错误

kotlin 错误解决

 

相关文章:

  • 2021-12-10
  • 2021-12-09
  • 2021-06-11
  • 2021-05-28
  • 2021-08-30
  • 2021-04-09
  • 2021-05-08
  • 2021-06-26
猜你喜欢
  • 2021-05-01
  • 2021-07-19
  • 2021-11-06
  • 2021-10-16
相关资源
相似解决方案