org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':radio:compileDevDebugJavaWithJavac'.

GitHub | danysantiago | 8 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

    Dagger 2 Build Fail Exception - java.util.NoSuchElementException

    GitHub | 8 months ago | danysantiago
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':radio:compileDevDebugJavaWithJavac'.
  2. 0

    Obscure Dagger 2.0 Error

    Google Groups | 2 years ago | Chris Harris
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':libs:ui:compileDebugJava'.

    Root Cause Analysis

    1. java.util.NoSuchElementException

      No message provided

      at com.sun.tools.javac.util.List$2.next()
    2. Java Tools
      List$2.next
      1. com.sun.tools.javac.util.List$2.next(List.java:432)
      1 frame
    3. Guava
      Iterables.getOnlyElement
      1. com.google.common.collect.Iterators.getOnlyElement(Iterators.java:307)
      2. com.google.common.collect.Iterables.getOnlyElement(Iterables.java:284)
      2 frames
    4. Dagger Compiler
      DependencyRequest$Factory$1.visitDeclared
      1. dagger.internal.codegen.DependencyRequest$Kind.from(DependencyRequest.java:123)
      2. dagger.internal.codegen.DependencyRequest$Factory$KindAndType.from(DependencyRequest.java:434)
      3. dagger.internal.codegen.DependencyRequest$Factory$1.visitDeclared(DependencyRequest.java:481)
      4. dagger.internal.codegen.DependencyRequest$Factory$1.visitDeclared(DependencyRequest.java:468)
      4 frames
    5. Java Tools
      Type$ClassType.accept
      1. com.sun.tools.javac.code.Type$ClassType.accept(Type.java:936)
      1 frame
    6. Dagger Compiler
      MembersInjectionBinding$Factory$4.visitExecutableAsMethod
      1. dagger.internal.codegen.DependencyRequest$Factory.extractKindAndType(DependencyRequest.java:467)
      2. dagger.internal.codegen.DependencyRequest$Factory.newDependencyRequest(DependencyRequest.java:409)
      3. dagger.internal.codegen.DependencyRequest$Factory.forRequiredResolvedVariable(DependencyRequest.java:315)
      4. dagger.internal.codegen.DependencyRequest$Factory.forRequiredResolvedVariables(DependencyRequest.java:227)
      5. dagger.internal.codegen.MembersInjectionBinding$Factory.injectionSiteForInjectMethod(MembersInjectionBinding.java:167)
      6. dagger.internal.codegen.MembersInjectionBinding$Factory.access$100(MembersInjectionBinding.java:144)
      7. dagger.internal.codegen.MembersInjectionBinding$Factory$4.visitExecutableAsMethod(MembersInjectionBinding.java:324)
      8. dagger.internal.codegen.MembersInjectionBinding$Factory$4.visitExecutableAsMethod(MembersInjectionBinding.java:320)
      8 frames
    7. Java Tools
      Symbol$MethodSymbol.accept
      1. com.sun.tools.javac.code.Symbol$MethodSymbol.accept(Symbol.java:1644)
      1 frame
    8. Dagger Compiler
      InjectProcessingStep$1.visitVariableAsField
      1. dagger.internal.codegen.MembersInjectionBinding$Factory.getInjectionSites(MembersInjectionBinding.java:255)
      2. dagger.internal.codegen.MembersInjectionBinding$Factory.forInjectedType(MembersInjectionBinding.java:207)
      3. dagger.internal.codegen.InjectBindingRegistry.tryRegisterMembersInjectedType(InjectBindingRegistry.java:271)
      4. dagger.internal.codegen.InjectBindingRegistry.tryRegisterMembersInjectedType(InjectBindingRegistry.java:251)
      5. dagger.internal.codegen.InjectProcessingStep$1.visitVariableAsField(InjectProcessingStep.java:69)
      6. dagger.internal.codegen.InjectProcessingStep$1.visitVariableAsField(InjectProcessingStep.java:59)
      6 frames
    9. Java Tools
      Symbol$VarSymbol.accept
      1. com.sun.tools.javac.code.Symbol$VarSymbol.accept(Symbol.java:1237)
      1 frame
    10. Dagger Compiler
      InjectProcessingStep.process
      1. dagger.internal.codegen.InjectProcessingStep.process(InjectProcessingStep.java:58)
      1 frame
    11. dagger.shaded.auto
      BasicAnnotationProcessor.process
      1. dagger.shaded.auto.common.BasicAnnotationProcessor.process(BasicAnnotationProcessor.java:318)
      2. dagger.shaded.auto.common.BasicAnnotationProcessor.process(BasicAnnotationProcessor.java:171)
      2 frames
    12. Java Tools
      JavacTaskImpl.call
      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.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
      10. com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
      10 frames
    13. org.gradle.api
      JavaCompile.compile
      1. org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:45)
      2. org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:33)
      3. org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:101)
      4. org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:50)
      5. org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:36)
      6. org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:34)
      7. org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:25)
      8. org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:157)
      9. org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:139)
      10. org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:93)
      10 frames
    14. com.android.build
      AndroidJavaCompile.compile
      1. com.android.build.gradle.tasks.factory.AndroidJavaCompile.compile(AndroidJavaCompile.java:49)
      1 frame
    15. org.gradle.internal
      JavaMethod.invoke
      1. org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
      1 frame
    16. Gradle Core
      DefaultGradleLauncher.run
      1. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:244)
      2. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:220)
      3. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.execute(AnnotationProcessingTaskFactory.java:231)
      4. org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:209)
      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:64)
      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.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:25)
      20. org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:110)
      21. org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:37)
      22. org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
      23. org.gradle.execution.DefaultBuildExecuter.access$000(DefaultBuildExecuter.java:23)
      24. org.gradle.execution.DefaultBuildExecuter$1.proceed(DefaultBuildExecuter.java:43)
      25. org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32)
      26. org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:37)
      27. org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:30)
      28. org.gradle.initialization.DefaultGradleLauncher$4.run(DefaultGradleLauncher.java:154)
      29. org.gradle.internal.Factories$1.create(Factories.java:22)
      30. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
      31. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:52)
      32. org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:151)
      33. org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)
      34. org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)
      35. org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)
      36. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)
      37. org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)
      38. org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)
      39. org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:82)
      39 frames
    17. Gradle Launcher
      ForwardClientInput$2.call
      1. org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:94)
      2. org.gradle.tooling.internal.provider.ExecuteBuildActionRunner.run(ExecuteBuildActionRunner.java:28)
      3. org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
      4. org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)
      5. org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)
      6. org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:78)
      7. org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:48)
      8. org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:52)
      9. org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
      10. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      11. org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)
      12. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      13. org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)
      14. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      15. org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)
      16. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      17. org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)
      18. org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)
      18 frames
    18. Gradle Core
      Swapper.swap
      1. org.gradle.util.Swapper.swap(Swapper.java:38)
      1 frame
    19. Gradle Launcher
      DaemonStateCoordinator$1.run
      1. org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)
      2. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      3. org.gradle.launcher.daemon.server.health.DaemonHealthTracker.execute(DaemonHealthTracker.java:47)
      4. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      5. org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:66)
      6. org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
      7. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      8. org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)
      9. org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)
      10. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      11. org.gradle.launcher.daemon.server.health.HintGCAfterBuild.execute(HintGCAfterBuild.java:41)
      12. org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)
      13. org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)
      14. org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:246)
      14 frames
    20. Gradle Core
      StoppableExecutorImpl$1.run
      1. org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)
      2. org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)
      2 frames