java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.aakarshm.fun.MainActivity}: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

Stack Overflow | NewToJava | 5 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    JSOUP assigning image to view or text to field

    Stack Overflow | 5 months ago | NewToJava
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.aakarshm.fun.MainActivity}: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
  2. 0

    Setting an Array that belongs to a fragment from the main activity

    Stack Overflow | 7 months ago | Paul S
    java.lang.RuntimeException: Unable to start activity ComponentInfo{pal.mplayercomeon/pal.mplayercomeon.MainActivity}: java.lang.IllegalArgumentException: No view found for id 0x7f0c0074 (pal.mplayercomeon:id/music_list_fragment) for fragment MusicList{ee972d3 #0 id=0x7f0c0074}
  3. 0

    MapboxAccountManager not checking permission correctly onResume

    GitHub | 6 months ago | cammace
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mapbox.mapboxandroiddemo/com.mapbox.mapboxandroiddemo.examples.basics.SimpleMapViewActivity}: com.mapbox.mapboxsdk.exceptions.MapboxAccountManagerNotStartedException: MapboxAccountManager was not started correctly. Use MapboxAccountManager#start(Context, String) to initialise. More information in this guide https://www.mapbox.com/help/first-steps-android-sdk/#access-tokens.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Can't find ColorStateList from drawable resource ID only on Android Nougat

    Stack Overflow | 7 months ago | Whiz
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.my.domain/com.my.domain.activities.MainActivity}: android.content.res.Resources$NotFoundException: Can't find ColorStateList from drawable resource ID #0x7f020057
  6. 0

    java.lang.StringIndexOutOfBoundsException: length=11; regionStart=6; regionLength=11

    Stack Overflow | 7 months ago | Marduk_and87
    java.lang.RuntimeException: Unable to start activity ComponentInfo{app.com.hotelsmanager/app.com.hotelsmanager.View.Activities.MainActivity}: java.lang.StringIndexOutOfBoundsException: length=11; regionStart=6; regionLength=11

  1. Indri Yunita 4 times, last 3 weeks ago
  2. andreeaa marin 184 times, last 1 month ago
  3. Reich 59 times, last 2 months ago
  4. gamebusterz 40 times, last 1 month ago
  5. Emrah Küçük 3 times, last 2 months ago
42 more registered users
11 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. Android Platform
    ActivityThread.handleLaunchActivity
    1. android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
    2. android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
    2 frames