java.lang.StringIndexOutOfBoundsException: length=40; regionStart=21; regionLength=-7


You need to make sure that capitalisation of the case for the plugin in the
properties file is exactly: "AllocinePlugin" and not "allocineplugin"


This is a bug when using Micromax devices with VideoView. You can either exclude these devices or look at this workaround:

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GitHub comment 816#203989506
    via GitHub by mimi89999
  • AppsFlyerLib StringIndexOutOfBoundsException
    via Stack Overflow by busylee
  • GitHub comment 58#256844115
    via GitHub by hengtongjie
  • App Crashing
    via GitHub by aman-jham
    • java.lang.StringIndexOutOfBoundsException: length=40; regionStart=21; regionLength=-7 at java.lang.String.startEndAndLength( at java.lang.String.substring( at project1.AudioSignal.getTrackFromAAC( at project1.AudioSignal.access$1100( at project1.AudioSignal$5.playerMetadata( at com.spoledge.aacdecoder.IcyInputStream.parseMetadata( at com.spoledge.aacdecoder.IcyInputStream.fetchMetadata( at at at

    Users with the same issue

    winer2226 times, last one,
    filpgame2 times, last one,
    Alexandru Popa
    Alexandru Popa2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    96 more bugmates