0

FAILURE: Build failed with an exception.

  • What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Failed to find target with hash string 'android-28' in: C:\Users\Lenovo\AppData\Local\Android\sdk

  • 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 15m 16s Running Gradle task 'assembleDebug'... Running Gradle task 'assembleDebug'... Done 927.4s (!) Exception: Gradle task assembleDebug failed with exit code 1

C:\Users\Lenovo\Desktop\flutter project\hello_world>

1 Answers1

0

Downgrade Java version to 8

If you don't want to use Java 8 for everything else on your system you can set the JDK to be used by gradle in gradle.properties see