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

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

    GitHub comment 468#249276560

    GitHub | 7 months ago | sirivanleo
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformJackWithJackForMockDebug'.

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      element public abstract android.app.Activity activity() is not a member of the containing type .ChildComponent nor any of its superclasses

      at com.android.jack.eclipse.jdt.internal.compiler.apt.model.TypesImpl.asMemberOf()
    2. com.android.jack
      TypesImpl.asMemberOf
      1. com.android.jack.eclipse.jdt.internal.compiler.apt.model.TypesImpl.asMemberOf(TypesImpl.java:129)
      1 frame
    3. Dagger Compiler
      ComponentProcessingStep.process
      1. dagger.internal.codegen.ComponentValidator.validate(ComponentValidator.java:164)
      2. dagger.internal.codegen.ComponentProcessingStep.process(ComponentProcessingStep.java:123)
      3. dagger.internal.codegen.ComponentProcessingStep.process(ComponentProcessingStep.java:47)
      3 frames
    4. 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
    5. com.android.jack
      Api01ConfigImpl$Api01CompilationTaskImpl.run
      1. com.android.jack.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:139)
      2. com.android.jack.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.round(RoundDispatcher.java:121)
      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
    6. com.android.tools.build.builder
      AndroidBuilder.convertByteCodeUsingJack
      1. com.android.builder.core.AndroidBuilder.convertByteCodeUsingJackApis(AndroidBuilder.java:1852)
      2. com.android.builder.core.AndroidBuilder.convertByteCodeUsingJack(AndroidBuilder.java:1679)
      2 frames
    7. 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
    8. com.android.builder
      ThreadRecorder.record
      1. com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:156)
      1 frame
    9. com.android.build
      TransformTask.transform
      1. com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:173)
      1 frame
    10. org.gradle.internal
      JavaMethod.invoke
      1. org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
      1 frame
    11. 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