Join GitHub today
ART Runtime ArrayIndexOutOfBoundsException when instantiating Call object #1486
This is a crazy error I am getting that I am having an incredibly difficult time debugging. I have determined that it is thrown when trying to instantiate the Call object itself, and not when calling enqueue.
This error also doesn't occur on all of my Calls either, just on one in particular. This is what made me think it was something I was personally doing wrong, but I can't find the problem, which leads me to believe there might just be a problem with Call? If I'm crazy let me know.
Thank you in advance!
Where I am calling it:
@JakeWharton Like I said in my original message, I really don't think it has to do with retrofit either...but this stack trace only appears when I instantiate my Call object. Ultimately, I feel like I am doing something wrong with the call object. But I'm just not seeing it...its unfortunate that the logcat is so unhelpful.
I created a bug in the AOSP bug tracker. Thanks for your help! https://code.google.com/p/android/issues/detail?id=199105
referenced this issue
Jan 21, 2016
Seeing same issue that points to retrofit. Using alpha 3 did not help.
We only see this issue when instant run in enabled.
I also removed the api call causing crash for funsies.. No crash and all other calls
added a commit
Jan 30, 2016
I was having this same problem. I upgraded the gradle plugin to
The 2.2.x line of development might fix this. Not sure. I know alpha2 works for me in my situation.
I'd recommend folks give that a try. And you can keep using instant run.
This is insane.
I was having this similar problem and thought that it was the Facebook Graph API error. For me, downgrading gradle version didn't solve the problem too.
I had to disable
Hi everyone, I have fixed this bug disabling "Instant Run", but: Is there any solution that doesn't means disable a good feature of Android Studio, or using a workarround?
It happens with MarshMallow devices. Could it be a permissions problem?
Thank for your comments, It was a huge help.