Solucionado (ver solução)
Solucionado
(ver solução)
1
resposta

Erro na hora de executar o flutter run

Fui executar o flutter run e apareceu isso

FAILURE: Build failed with an exception.

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

    Kotlin could not find the required JDK tools in the Java installation 'C:\Program Files\Java\jre1.8.0_291' used by Gradle. Make sure Gradle is running on a JDK, not JRE.

  • 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 40s Running Gradle task 'assembleDebug'... Running Gradle task 'assembleDebug'... Done 162,3s Exception: Gradle task assembleDebug failed with exit code 1

1 resposta
solução!

Olá Bruno,

rode flutter doctor -v

e retorna algum erro?

Eu corrigi alguns erros de SDK, definindo ele lá no Android Studio.

Conte-nos sua jornada