1
resposta

problema de execução

tentei executar o codigo inicial, como na aula apresentou esse erro : Launching lib\main.dart on sdk gphone x86 in debug mode... Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:compileDebugJavaWithJavac'.

    Could not find tools.jar. Please check that C:\Program Files\Java\jre1.8.0_291 contains a valid JDK installation.

  • 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 8s Exception: Gradle task assembleDebug failed with exit code 1

1 resposta

Olá, Eduardo. Tudo bom?

Esse erro é que possívelmente você não instalou o JDK, que é pra quem quer desenrolver apps..

Qualquer dúvida, estamos a disposição.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software