java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V

GitHub | liudg | 2 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

    0.8.4版本增量编译出错,全量编译没事

    GitHub | 2 months ago | liudg
    java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
  2. 0

    GitHub comment 32#68339303

    GitHub | 2 years ago | melix
    java.lang.NoSuchMethodError: com.google.common.collect.Queues.newArrayDeque()Ljava/util/ArrayDeque;
  3. 0

    NoSuchMethodError: com.google.common.base.Preconditions.checkState in 2.8 compiler

    GitHub | 3 months ago | koral--
    java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    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.NoSuchMethodError

      com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V

      at dagger.internal.codegen.InjectBindingRegistry$BindingsCollection.tryToCacheBinding()
    2. Dagger Compiler
      InjectProcessingStep$1.visitVariableAsField
      1. dagger.internal.codegen.InjectBindingRegistry$BindingsCollection.tryToCacheBinding(InjectBindingRegistry.java:137)
      2. dagger.internal.codegen.InjectBindingRegistry$BindingsCollection.tryRegisterBinding(InjectBindingRegistry.java:98)
      3. dagger.internal.codegen.InjectBindingRegistry.registerBinding(InjectBindingRegistry.java:207)
      4. dagger.internal.codegen.InjectBindingRegistry.tryRegisterMembersInjectedType(InjectBindingRegistry.java:269)
      5. dagger.internal.codegen.InjectBindingRegistry.tryRegisterMembersInjectedType(InjectBindingRegistry.java:248)
      6. dagger.internal.codegen.InjectProcessingStep$1.visitVariableAsField(InjectProcessingStep.java:69)
      7. dagger.internal.codegen.InjectProcessingStep$1.visitVariableAsField(InjectProcessingStep.java:59)
      7 frames
    3. Java RT
      ElementKindVisitor6.visitVariable
      1. javax.lang.model.util.ElementKindVisitor6.visitVariable(ElementKindVisitor6.java:229)
      1 frame
    4. Java Tools
      Symbol$VarSymbol.accept
      1. com.sun.tools.javac.code.Symbol$VarSymbol.accept(Symbol.java:1237)
      1 frame
    5. Dagger Compiler
      InjectProcessingStep.process
      1. dagger.internal.codegen.InjectProcessingStep.process(InjectProcessingStep.java:58)
      1 frame
    6. dagger.shaded.auto
      BasicAnnotationProcessor.process
      1. dagger.shaded.auto.common.BasicAnnotationProcessor.process(BasicAnnotationProcessor.java:329)
      2. dagger.shaded.auto.common.BasicAnnotationProcessor.process(BasicAnnotationProcessor.java:182)
      2 frames
    7. Java Tools
      Main.main
      1. com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:794)
      2. com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:705)
      3. com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1800(JavacProcessingEnvironment.java:91)
      4. com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1035)
      5. com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1176)
      6. com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170)
      7. com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856)
      8. com.sun.tools.javac.main.Main.compile(Main.java:523)
      9. com.sun.tools.javac.main.Main.compile(Main.java:381)
      10. com.sun.tools.javac.main.Main.compile(Main.java:370)
      11. com.sun.tools.javac.main.Main.compile(Main.java:361)
      12. com.sun.tools.javac.Main.compile(Main.java:56)
      13. com.sun.tools.javac.Main.main(Main.java:42)
      13 frames