java.lang.RuntimeException

java.lang.NoSuchMethodError: com.squareup.javapoet.CodeBlock.of(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/CodeBlock; 17:50:15.318 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.tools.javac.main.Main.compile(Main.java:553) 17:50:15.318 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129) 17:50:15.318 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138) 17:50:15.318 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:45) 17:50:15.318 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:33)

Solutions on the web24850

  • via GitHub by fritzfs
    , 1 year ago
    java.lang.NoSuchMethodError: com.squareup.javapoet.CodeBlock.of(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/CodeBlock; 17:50:15.318 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.tools.javac.main.Main.compile(Main.java:553
  • java.lang.NullPointerException at com.sun.tools.javac.main.Main.compile(Main.java:469) at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:132) at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute
  • java.lang.AssertionError: java.lang.IllegalArgumentException 17:52:54.635 [ERROR] [org.gradle.BuildExceptionReporter] at com.android.jack.api.v01.impl.Api01ConfigImpl$Api01CompilationTaskImpl.run(Api01ConfigImpl.java:126) 17:52:54.635 [ERROR
  • Stack trace

    • java.lang.RuntimeException: java.lang.NoSuchMethodError: com.squareup.javapoet.CodeBlock.of(Ljava/lang/String;[Ljava/lang/Object;)Lcom/squareup/javapoet/CodeBlock; 17:50:15.318 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.tools.javac.main.Main.compile(Main.java:553) 17:50:15.318 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129) 17:50:15.318 [ERROR] [org.gradle.BuildExceptionReporter] at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138) 17:50:15.318 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:45) 17:50:15.318 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:33) at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:101) at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:50) at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:36) at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:34) at org.gradle.api.internal.tasks.compile.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:25) at org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:157) at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:139) at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:93) at com.android.build.gradle.tasks.factory.AndroidJavaCompile.compile(AndroidJavaCompile.java:49) at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:75) at org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory$IncrementalTaskAction.doExecute(AnnotationProcessingTaskFactory.java:244)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.