java.lang.RuntimeException: Unable to resume activity {AppName.Activities/AppName.Activities.ViewPagerActivity}: java.lang.IndexOutOfBoundsException: Invalid index 2, size is 0

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by kunal khemka
, 11 months ago
Unable to resume activity {AppName.Activities/AppName.Activities.ViewPagerActivity}: java.lang.IndexOutOfBoundsException: Invalid index 2, size is 0
via cyberforum.ru by Unknown author, 1 year ago
Unable to resume activity {com.greendield.note/com.greendield.note.EditNote}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
via Stack Overflow by Pramod Patel
, 9 months ago
Unable to resume activity {com.myapp.app/com.myapp.app.Activities.MainActivity}: java.lang.IndexOutOfBoundsException: Invalid index 7, size is 7
via badlogicgames.com by Unknown author, 2 years ago
Unable to resume activity {com.aevumlab.wrckb/com.aevumlab.wrckb.WreckingBaller}: java.lang.IndexOutOfBoundsException: Invalid index 1, size is 1
via adventuresinqa.com by Unknown author, 2 years ago
Unable to resume activity {com.example.android.notepad/com.example.android.notepad.NoteEditor}: android.database.CursorIndexOutOfBoundsException: Index 0 requested, with a size of 0
via qnundrum.com by Unknown author, 1 year ago
Unable to resume activity {com.tyczj.myapp/com.tyczj.myapp.MainActivity}: java.lang.IllegalArgumentException: bitmap size exceeds 32bits
java.lang.RuntimeException: Unable to resume activity {AppName.Activities/AppName.Activities.ViewPagerActivity}: java.lang.IndexOutOfBoundsException: Invalid index 2, size is 0
at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:257)
at java.util.ArrayList.set(ArrayList.java:484)
at android.support.v4.app.FragmentStatePagerAdapter.destroyItem(FragmentStatePagerAdapter.java:97)
at android.support.v4.view.ViewPager.populate(ViewPager.java:415)
at android.support.v4.view.ViewPager.setCurrentItemInternal(ViewPager.java:271)
at AppName.Activities.ViewPagerActivity.setUpView(ViewPagerActivity.java:36)
at AppName.Activities.ViewPagerActivity.onStart(ViewPagerActivity.java:28)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1129)
at android.app.Activity.performStart(Activity.java:3791)
at android.app.Activity.performRestart(Activity.java:3821)
at android.app.Activity.performResume(Activity.java:3826)

Users with the same issue

4 times, 2 months ago
Once, 2 months ago
3 times, 6 months ago
12 times, 6 months ago
81 times, 6 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.