java.lang.StringIndexOutOfBoundsException: String index out of range: -1

YouTrack | 3 months ago
  1. 0

    GitHub comment 225#164221685

    GitHub | 12 months ago | JordanMartinez
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  2. 0

    GitHub comment 622#164778918

    GitHub | 12 months ago | ebuildy
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    GitHub comment 231#166069082

    GitHub | 12 months ago | JordanMartinez
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  5. 0

    Installation of JAXP failing on terminal without GUI

    Stack Overflow | 11 months ago | dzieciou
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
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.StringIndexOutOfBoundsException

    String index out of range: -1

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1967)
    1 frame
  3. android.databinding.tool
    CompilerChef.writeViewBinders
    1. android.databinding.tool.reflection.annotation.AnnotationTypeUtil.getDescription(AnnotationTypeUtil.java:87)
    2. android.databinding.tool.reflection.annotation.AnnotationTypeUtil.getDescription(AnnotationTypeUtil.java:47)
    3. android.databinding.tool.reflection.annotation.AnnotationMethod.getJniDescription(AnnotationMethod.java:159)
    4. android.databinding.tool.reflection.SdkUtil.getMinApi(SdkUtil.java:63)
    5. android.databinding.tool.reflection.annotation.AnnotationMethod.getMinApi(AnnotationMethod.java:152)
    6. android.databinding.tool.store.SetterStore$ModelMethodSetter.getMinApi(SetterStore.java:1412)
    7. android.databinding.tool.Binding.getMinApi(Binding.java:210)
    8. android.databinding.tool.writer.LayoutBinderWriter$executePendingBindings$1$1$7$1.invoke(LayoutBinderWriter.kt:956)
    9. android.databinding.tool.writer.LayoutBinderWriter$executePendingBindings$1$1$7$1.invoke(LayoutBinderWriter.kt:317)
    10. android.databinding.tool.writer.KCode.block(KCode.kt:94)
    11. android.databinding.tool.writer.LayoutBinderWriter$executePendingBindings$1$1.invoke(LayoutBinderWriter.kt:955)
    12. android.databinding.tool.writer.LayoutBinderWriter$executePendingBindings$1$1.invoke(LayoutBinderWriter.kt:317)
    13. android.databinding.tool.writer.KCode.block(KCode.kt:94)
    14. android.databinding.tool.writer.LayoutBinderWriter$executePendingBindings$1.invoke(LayoutBinderWriter.kt:909)
    15. android.databinding.tool.writer.LayoutBinderWriter$executePendingBindings$1.invoke(LayoutBinderWriter.kt:317)
    16. android.databinding.tool.writer.KCodeKt.kcode(KCode.kt:163)
    17. android.databinding.tool.writer.LayoutBinderWriter.executePendingBindings(LayoutBinderWriter.kt:907)
    18. android.databinding.tool.writer.LayoutBinderWriter$write$1$1.invoke(LayoutBinderWriter.kt:382)
    19. android.databinding.tool.writer.LayoutBinderWriter$write$1$1.invoke(LayoutBinderWriter.kt:317)
    20. android.databinding.tool.writer.KCode.block(KCode.kt:94)
    21. android.databinding.tool.writer.LayoutBinderWriter$write$1.invoke(LayoutBinderWriter.kt:362)
    22. android.databinding.tool.writer.LayoutBinderWriter$write$1.invoke(LayoutBinderWriter.kt:317)
    23. android.databinding.tool.writer.KCodeKt.kcode(KCode.kt:163)
    24. android.databinding.tool.writer.LayoutBinderWriter.write(LayoutBinderWriter.kt:352)
    25. android.databinding.tool.LayoutBinder.writeViewBinder(LayoutBinder.java:340)
    26. android.databinding.tool.DataBinder.writeBinders(DataBinder.java:101)
    27. android.databinding.tool.CompilerChef.writeViewBinders(CompilerChef.java:211)
    27 frames
  4. android.databinding.annotationprocessor
    ProcessDataBinding.process
    1. android.databinding.annotationprocessor.ProcessExpressions.writeResourceBundle(ProcessExpressions.java:154)
    2. android.databinding.annotationprocessor.ProcessExpressions.onHandleStep(ProcessExpressions.java:82)
    3. android.databinding.annotationprocessor.ProcessDataBinding$ProcessingStep.runStep(ProcessDataBinding.java:154)
    4. android.databinding.annotationprocessor.ProcessDataBinding$ProcessingStep.access$000(ProcessDataBinding.java:139)
    5. android.databinding.annotationprocessor.ProcessDataBinding.process(ProcessDataBinding.java:66)
    5 frames
  5. org.jetbrains.kotlin
    AbstractKotlinCompile.execute
    1. org.jetbrains.kotlin.annotation.AbstractAnnotationProcessingExtension.analysisCompleted(AnnotationProcessingExtension.kt:142)
    2. org.jetbrains.kotlin.resolve.jvm.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegration(TopDownAnalyzerFacadeForJVM.java:160)
    3. org.jetbrains.kotlin.resolve.jvm.TopDownAnalyzerFacadeForJVM.analyzeFilesWithJavaIntegrationWithCustomContext(TopDownAnalyzerFacadeForJVM.java:79)
    4. org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler$analyze$1.analyze(KotlinToJVMBytecodeCompiler.kt:350)
    5. org.jetbrains.kotlin.cli.common.messages.AnalyzerWithCompilerReport.analyzeAndReport(AnalyzerWithCompilerReport.kt:126)
    6. org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.analyze(KotlinToJVMBytecodeCompiler.kt:343)
    7. org.jetbrains.kotlin.cli.jvm.compiler.KotlinToJVMBytecodeCompiler.compileModules(KotlinToJVMBytecodeCompiler.kt:129)
    8. org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:178)
    9. org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:51)
    10. org.jetbrains.kotlin.cli.common.CLICompiler.exec(CLICompiler.java:199)
    11. org.jetbrains.kotlin.gradle.tasks.KotlinCompile.compileChanged(Tasks.kt:542)
    12. org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompiler(Tasks.kt:458)
    13. org.jetbrains.kotlin.gradle.tasks.KotlinCompile.callCompiler(Tasks.kt:149)
    14. org.jetbrains.kotlin.gradle.tasks.AbstractKotlinCompile.execute(Tasks.kt:115)
    14 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  7. org.gradle.internal
    JavaMethod.invoke
    1. org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
    1 frame
  8. Gradle Core
    StoppableExecutorImpl$1.run
    1. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:245)
    2. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:221)
    3. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.execute(AnnotationProcessingTaskFactory.java:232)
    4. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:210)
    5. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80)
    6. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61)
    7. org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
    8. org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
    9. org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:66)
    10. org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
    11. org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:52)
    12. org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
    13. org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
    14. org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
    15. org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:203)
    16. org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:185)
    17. org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:66)
    18. org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:50)
    19. org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
    20. org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
    20 frames
  9. Java RT
    ThreadPoolExecutor$Worker.run
    1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    2 frames