Não estava conseguindo rodar meus projetos, pois tinha que atualizar o arquivo build.gradle e o gradle-wrapper.properties , porém apareceu um outro warning que não conseguir resolver.
WARNING abaixo
Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project 'android'.
Could not resolve all files for configuration ':classpath'. Could not find com.android.tools.build:gradle:7.6.1. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.6.1/gradle-7.6.1.pom - https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/7.6.1/gradle-7.6.1.pom Required by: project :
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 10s Exception: Gradle task assembleDebug failed with exit code 1
Exited (1).