FAILURE: Build failed with an exception


#1

Hi!
After IDE update I`ve got some type of exception


:presentation:prepareDebugUnitTestDependencies
:presentation:dataBindingExportBuildInfoDebug
:presentation:incrementalDebugJavaCompilationSafeguard
:presentation:compileDebugKotlin
:presentation:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:presentation:compileDebugJavaWithJavac’.

java.lang.IllegalArgumentException: Parameter specified as non-null is null: method org.jetbrains.kotlin.annotation.RoundEnvironmentWrapper.getElementsAnnotatedWith, parameter a

Yesterday it’s worked without this exception. Is anybode could say what the type of issue I got? And how can I fix it?


#2

The deal was with the gradle build tool version, I’ve updated to 2.1 beta version and so build was broken. After I returned to 2.0 version it works like a charm


#3

Same issue. I use latest kotlin 1.0.2


#4

Hi everyone!
If you’re having this problem could you run gradle build with ‘–stacktrace --debug’ parameters and attach a log to the issue https://youtrack.jetbrains.com/issue/KT-12113 ?
Specific code examples/projects are welcome :slight_smile: