Estava fazendo um upgrade e o notebook reiniciou, provavelmente corrompendo algum arquivo. Já excluí e reinstalei novamente mas continua ocorrendo o mesmo erro quando executo o comando "flutter doctor".
Checking Dart SDK version...
Downloading Dart SDK from Flutter engine ...
Expanding downloaded archive with PowerShell...
Building flutter tool...
Running pub upgrade...
Resolving dependencies... (1.8s)
Because flutter_tools depends on unified_analytics 7.0.2 which doesn't match any versions, version solving failed.
You can try the following suggestion to make the pubspec resolve:
* Consider downgrading your constraint on unified_analytics: dart pub add unified_analytics:^7.0.1
Error (1): Unable to 'pub upgrade' flutter tool. Retrying in five seconds... (9 tries left)
Estava usando a versão mais recente. Agora instalei a versão usada no curso e recebi retorno diferente do flutter doctor:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.0.1, on Microsoft Windows [versÆo 10.0.26100.3775], locale pt-BR)
[!] Android toolchain - develop for Android devices (Android SDK version 36.0.0)
X Android SDK file not found: C:\Users\S598021112\AppData\Local\Android\Sdk\platforms\android-36\android.jar.
[√] Chrome - develop for the web
[!] Visual Studio - develop for Windows (Ferramentas de Build do Visual Studio 2019 16.11.25)
X The current Visual Studio installation is incomplete. Please reinstall Visual Studio.
[!] Android Studio (version 2024.3.2)
X Unable to find bundled Java version.
[√] IntelliJ IDEA Community Edition (version 2025.1)
[√] Connected device (3 available)
[√] HTTP Host Availability