2

Friends,

I was trying to run gradle command (mentioned below) to resolve dependencies

gradlew -q dependencies app:dependencies --configuration compile

I am using JDK9 and and using gradle 4.4 but when run above mentioned command getting an error.

FAILURE: Build failed with an exception.

  • What went wrong: A problem occurred configuring project ':app'.

    Failed to notify project evaluation listener. javax/xml/bind/annotation/XmlSchema

  • 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 20s

Please help me on this.

Dipendra Sharma
  • 2,404
  • 2
  • 18
  • 35

1 Answers1

3

It is an Android SDK problem with Java 9: Failed to run sdkmanager --list (Android SDK) with Java 9

Alexander Ushakov
  • 5,139
  • 3
  • 27
  • 50