org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformJackWithJackForDebug'.

GitHub | simpleton | 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

    ServiceConfigurationError in library using SNAPSHOT-8.2.2-20160819.151252 and dagger2.6

    GitHub | 8 months ago | simpleton
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformJackWithJackForDebug'.
  2. 0

    ButterKnifeProcessor could not be instantiated -> JavaPoet?

    GitHub | 8 months ago | tobiasschuerg
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformJackWithJackForDebug'.

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      com.squareup.javapoet.CodeBlock.of(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/CodeBlock;

      at butterknife.compiler.Id.<init>()
    2. butterknife.compiler
      ButterKnifeProcessor.<clinit>
      1. butterknife.compiler.Id.<init>(Id.java:18)
      2. butterknife.compiler.ButterKnifeProcessor.<clinit>(ButterKnifeProcessor.java:82)
      2 frames
    3. com.android.jack
      Api01ConfigImpl$Api01CompilationTaskImpl.run
      1. com.android.jack.eclipse.jdt.internal.compiler.apt.dispatch.BatchAnnotationProcessorManager.discoverNextProcessor(BatchAnnotationProcessorManager.java:156)
      2. com.android.jack.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.round(RoundDispatcher.java:116)
      3. com.android.jack.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:159)
      4. com.android.jack.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:909)
      5. com.android.jack.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:434)
      6. com.android.jack.frontend.java.JackBatchCompiler.performCompilation(JackBatchCompiler.java:223)
      7. com.android.jack.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1712)
      8. com.android.jack.frontend.java.JackBatchCompiler.compile(JackBatchCompiler.java:188)
      9. com.android.jack.Jack.buildSession(Jack.java:977)
      10. com.android.jack.Jack.run(Jack.java:496)
      11. com.android.jack.api.v01.impl.Api01ConfigImpl$Api01CompilationTaskImpl.run(Api01ConfigImpl.java:102)
      11 frames
    4. com.android.tools.build.builder
      AndroidBuilder.convertByteCodeUsingJack
      1. com.android.builder.core.AndroidBuilder.convertByteCodeUsingJackApis(AndroidBuilder.java:1842)
      2. com.android.builder.core.AndroidBuilder.convertByteCodeUsingJack(AndroidBuilder.java:1669)
      2 frames
    5. com.android.build
      TransformTask$2.call
      1. com.android.build.gradle.internal.transforms.JackTransform.runJack(JackTransform.java:221)
      2. com.android.build.gradle.internal.transforms.JackTransform.transform(JackTransform.java:195)
      3. com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:178)
      4. com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:174)
      4 frames
    6. com.android.builder
      ThreadRecorder.record
      1. com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:156)
      1 frame
    7. com.android.build
      TransformTask.transform
      1. com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:173)
      1 frame
    8. org.gradle.internal
      JavaMethod.invoke
      1. org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
      1 frame
    9. 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