FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> java.util.NoSuchElementException (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
BUILD FAILED in 2m 7s
Error: Gradle task assembleDebug failed with exit code 1
Please do not hijack totally unrelated threads, but create your own.
Your error has nothing to do with the thread you posted to.
Besides that, is there a question hidden somewhere?