# Build failed with an exception - Android Gradle

**URL:** <https://community.sonarsource.com/t/build-failed-with-an-exception-android-gradle/18266>\
**Category:** SonarQube Server / Community Build\
**Tags:** android, kotlin\
**Created:** [January 3, 2020, 6:27am UTC](https://community.sonarsource.com/t/build-failed-with-an-exception-android-gradle/18266 "2020-01-03T06:27:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhinav.korpal](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/abhinav.korpal/32/8377_2.png) [@abhinav.korpal](https://community.sonarsource.com/u/abhinav.korpal)\
**Post date:** [January 3, 2020, 6:27am UTC](https://community.sonarsource.com/t/build-failed-with-an-exception-android-gradle/18266/1 "2020-01-03T06:27:30Z")

</div>

- versions used  
`Docker Sonarqube Enterprise Version 8.1`
- error observed

```auto

> Configure project :app
WARNING: DSL element 'useProguard' is obsolete and will be removed soon. Use 'android.enableR8' in gradle.properties to switch between R8 and Proguard..
WARNING: DSL element 'useProguard' is obsolete and will be removed soon. Use 'android.enableR8' in gradle.properties to switch between R8 and Proguard..

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> kotlin.KotlinNullPointerException (no error message)

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 11s

```

- steps to reproduce  
`./gradlew sonarqube`

---

<div class="post-metadata">

**Author:** ![Lena](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/lena/32/66719_2.png) [@Lena](https://community.sonarsource.com/u/Lena)\
**Post date:** [January 31, 2020, 10:52am UTC](https://community.sonarsource.com/t/build-failed-with-an-exception-android-gradle/18266/2 "2020-01-31T10:52:09Z")

</div>

Does build fail without SonarQube analysis?

---

<div class="post-metadata">

**Author:** ![Margarita\_Nedzelska](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/margarita_nedzelska/32/47493_2.png) [@Margarita\_Nedzelska](https://community.sonarsource.com/u/Margarita_Nedzelska)\
**Post date:** [April 26, 2021, 9:16am UTC](https://community.sonarsource.com/t/build-failed-with-an-exception-android-gradle/18266/3 "2021-04-26T09:16:58Z")

</div>


