java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.aakarshm.fun.MainActivity}: java.lang.IndexOutOfBoundsException: Index: 0, Size: 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

Samebug tips

,

Create an empty public constructor in your code.

Solutions on the web

via Stack Overflow by NewToJava
, 1 year ago
Unable to start activity ComponentInfo{com.example.aakarshm.fun.MainActivity}: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
via Stack Overflow by TheMysticalWarrior
, 5 months ago
Unable to start activity ComponentInfo{com.app.gb.socilizer_app/com.app.gb.socilizer.Activities.ProfileActivity}: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
via Stack Overflow by user233531
, 2 years ago
Unable to start activity ComponentInfo{com.joudi.myapplication/com.joudi.myapplication.MainActivity}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0
via Stack Overflow by Abdullah Gouda
, 1 month ago
Unable to start activity ComponentInfo{com.example.kimostore.teaty/com.example.kimostore.teaty.Teaty}: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
via Stack Overflow by Manuel Cruz
, 4 days ago
Unable to start activity ComponentInfo{g3w.gescarcopytest/g3w.gescarcopytest.SelectCarToTrack}: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
via Stack Overflow by Alexandra K.
, 4 days ago
Unable to start activity ComponentInfo{com.brainstorm.brainstormv1/com.brainstorm.brainstormv1.Activities.IdeasActivityDrawer}: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.aakarshm.fun.MainActivity}: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)

Users with the same issue

6 times, 1 year ago
535 times, 1 year ago
16 times, 11 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
10 times, 1 year ago

Write tip

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