org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':redacted:compileDevelopmentDebugJavaWithJavac'.

GitHub | kdaypossible | 3 months ago
  1. 0

    GitHub comment 3344#242420706

    GitHub | 3 months ago | kdaypossible
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':redacted:compileDevelopmentDebugJavaWithJavac'.
  2. 0

    GitHub comment 2#223266010

    GitHub | 6 months ago | Trellian
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'.
  3. 0

    AndroidStudio build with Dagger2: java.lang.IllegalArgumentException: ... cannot be represented as a Class<?>

    Stack Overflow | 6 months ago | Vasiliy
    java.lang.RuntimeException: java.lang.IllegalArgumentException: ProductManager cannot be represented as a Class<?>.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception is: org.gradle.api.tasks.TaskExecutionException: Execution failed for task :app:compileDebugJavaWithJavac

    Stack Overflow | 12 months ago | angel
    java.lang.RuntimeException: java.lang.ClassCastException: com.sun.tools.javac.code.Type cannot be cast to javax.lang.model.type.DeclaredType Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) <a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. <a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
  6. 0

    Dagger 2 Injection - buildToolsVersion "23.0.2" gradle 2.8 ...compileDebugJavaWithJavac : java.lang.IllegalStateException

    Stack Overflow | 11 months ago | Rafael Bellas Raso
    org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compileDebugJavaWithJavac'.

    3 unregistered visitors
    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.RuntimeException

      java.lang.NoSuchMethodError: com.google.common.collect.FluentIterable.append(Ljava/lang /Iterable;)Lcom/google/common/collect/FluentIterable;

      at com.sun.tools.javac.main.Main.compile()
    2. Java Tools
      JavacTaskImpl.call
      1. com.sun.tools.javac.main.Main.compile(Main.java:553)
      2. com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)
      3. com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)
      3 frames
    3. org.gradle.api
      JavaCompile.compile
      1. org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:46)
      2. org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:33)
      3. org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:104)
      4. org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:53)
      5. org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:38)
      6. org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:35)
      7. org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:25)
      8. org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:163)
      9. org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:145)
      10. org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:93)
      10 frames
    4. com.android.build
      AndroidJavaCompile.compile
      1. com.android.build.gradle.tasks.factory.AndroidJavaCompile.compile(AndroidJavaCompile.java:49)
      1 frame
    5. org.gradle.internal
      JavaMethod.invoke
      1. org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75)
      1 frame