java.lang.StringIndexOutOfBoundsException: length=0; regionStart=0; regionLength=1

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

,
Expert tip

This is a bug when using Micromax devices with VideoView. You can either exclude these devices or look at this workaround: http://stackoverflow.com/a/31942841/4347859

,
via GitHub by Omertron

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

Solutions on the web

java.lang.StringIndexOutOfBoundsException: length=0; regionStart=0; regionLength=1
at java.lang.String.startEndAndLength(String.java:583)
at java.lang.String.substring(String.java:1464)
at io.appium.android.bootstrap.AndroidElementClassMap.match(AndroidElementClassMap.java:39)
at io.appium.android.bootstrap.AndroidCommandHolder.selectorForFind(AndroidCommandHolder.java:225)
at io.appium.android.bootstrap.AndroidCommandHolder.findElement(AndroidCommandHolder.java:74)
at io.appium.android.bootstrap.AndroidCommandExecutor.execute(AndroidCommandExecutor.java:81)
at io.appium.android.bootstrap.SocketServer.runCommand(SocketServer.java:102)
at io.appium.android.bootstrap.SocketServer.handleClientData(SocketServer.java:78)
at io.appium.android.bootstrap.SocketServer.listenForever(SocketServer.java:54)
at io.appium.android.bootstrap.Bootstrap.testRunServer(Bootstrap.java:18)
at com.android.uiautomator.testrunner.UiAutomatorTestRunner.start(UiAutomatorTestRunner.java:124)
at com.android.uiautomator.testrunner.UiAutomatorTestRunner.run(UiAutomatorTestRunner.java:85)
at com.android.commands.uiautomator.RunTestCommand.run(RunTestCommand.java:76)
at com.android.commands.uiautomator.Launcher.main(Launcher.java:83)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)

Users with the same issue

2 times, 1 year ago
59 times, 1 month ago
Once, 4 months ago
36 times, 5 months ago
6 times, 5 months ago
109 more bugmates

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