# FAILURE: Build failed with an exception

**URL:** <https://discuss.kotlinlang.org/t/failure-build-failed-with-an-exception/1598>\
**Category:** Android\
**Created:** [April 14, 2016, 9:02am UTC](https://discuss.kotlinlang.org/t/failure-build-failed-with-an-exception/1598 "2016-04-14T09:02:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@guest](https://discuss.kotlinlang.org/u/guest)\
**Post date:** [April 14, 2016, 9:02am UTC](https://discuss.kotlinlang.org/t/failure-build-failed-with-an-exception/1598/1 "2016-04-14T09:02:37Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@guest](https://discuss.kotlinlang.org/u/guest)\
**Post date:** [April 14, 2016, 9:22am UTC](https://discuss.kotlinlang.org/t/failure-build-failed-with-an-exception/1598/2 "2016-04-14T09:22:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![deviant](https://avatars.discourse-cdn.com/v4/letter/d/f6c823/32.png) [@deviant](https://discuss.kotlinlang.org/u/deviant)\
**Post date:** [May 13, 2016, 12:58pm UTC](https://discuss.kotlinlang.org/t/failure-build-failed-with-an-exception/1598/3 "2016-05-13T12:58:28Z")

</div>

Same issue. I use latest kotlin 1.0.2

---

<div class="post-metadata">

**Author:** ![tsvetkov](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/tsvetkov/32/6181_2.png) [@tsvetkov](https://discuss.kotlinlang.org/u/tsvetkov)\
**Post date:** [May 13, 2016, 1:51pm UTC](https://discuss.kotlinlang.org/t/failure-build-failed-with-an-exception/1598/4 "2016-05-13T13:51:07Z")

</div>

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](https://youtrack.jetbrains.com/issue/KT-12113) ?  
Specific code examples/projects are welcome 🙂
