Retrofit2和Instant Run 冲突导致 报错ArrayIndexOutOfBoundsException

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

代码突然报以上错误,解决方法:关闭AS的Instant Run。

Retrofit2和Instant Run 冲突导致 报错ArrayIndexOutOfBoundsException_第1张图片
image.png

详细看: https://xrubio.com/2016/02/problems-with-instant-run-android-studio-2-0-beta-4-and-retrofit/

你可能感兴趣的:(Retrofit2和Instant Run 冲突导致 报错ArrayIndexOutOfBoundsException)