Estou fazendo esse curso, e na hora de emular o app está dando esse erro. Tentei trocar as versões do Flutter utilizando a 3.0.0, a 3.0.1, a 3.0.5, a última versão, mas nada adiantou. Já tentei trocar as API do emulador também, utilizando a 29, a 30, a 31 e a 34 para ver se dava certo, e não deu. Poderiam me ajudar? Abaixo está uma descrição completa do erro.
Launching lib\main.dart on Android SDK built for x86 in debug mode... Running Gradle task 'assembleDebug'... Warning: Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Warning: Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/03 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/03 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/03 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01 Warning: elemento inesperado (uri:"", local:"base-extension"). Os elementos esperados s�o <{}codename>,<{}layoutlib>,<{}api-level> /D://Desktop//CURSOS//ALURA//Curso%20Flutter//fluttecurso2passo4//lib//main.dart:13:7: Error: A value of type 'ClientType/1/' can't be assigned to a variable of type 'ClientType/2/'.
- 'ClientType/1/' is from '/D://Desktop//CURSOS//ALURA//Curso%20Flutter//fluttecurso2passo4//lib//models/client_type.dart'.
- 'ClientType/2/' is from 'package:client_control/models/client_type.dart' ('lib/models/client_type.dart'). ClientType(name: 'Platinum', icon: Icons.credit_card), ^ /D://Desktop//CURSOS//ALURA//Curso%20Flutter//fluttecurso2passo4//lib//main.dart:14:7: Error: A value of type 'ClientType/1/' can't be assigned to a variable of type 'ClientType/2/'.
- 'ClientType/1/' is from '/D://Desktop//CURSOS//ALURA//Curso%20Flutter//fluttecurso2passo4//lib//models/client_type.dart'.
- 'ClientType/2/' is from 'package:client_control/models/client_type.dart' ('lib/models/client_type.dart'). ClientType(name: 'Golden', icon: Icons.card_membership), ^ /D://Desktop//CURSOS//ALURA//Curso%20Flutter//fluttecurso2passo4//lib//main.dart:15:7: Error: A value of type 'ClientType/1/' can't be assigned to a variable of type 'ClientType/2/'.
- 'ClientType/1/' is from '/D://Desktop//CURSOS//ALURA//Curso%20Flutter//fluttecurso2passo4//lib//models/client_type.dart'.
- 'ClientType/2/' is from 'package:client_control/models/client_type.dart' ('lib/models/client_type.dart'). ClientType(name: 'Titanium', icon: Icons.credit_score), ^ /D://Desktop//CURSOS//ALURA//Curso%20Flutter//fluttecurso2passo4//lib//main.dart:16:7: Error: A value of type 'ClientType/1/' can't be assigned to a variable of type 'ClientType/2/'.
- 'ClientType/1/' is from '/D://Desktop//CURSOS//ALURA//Curso%20Flutter//fluttecurso2passo4//lib//models/client_type.dart'.
- 'ClientType/2/' is from 'package:client_control/models/client_type.dart' ('lib/models/client_type.dart'). ClientType(name: 'Diamond', icon: Icons.diamond), ^
FAILURE: Build failed with an exception.
Where: Script 'C:\flutter 3.0.0\packages\flutter_tools\gradle\flutter.gradle' line: 1156
What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.
Process 'command 'C:\flutter 3.0.0\bin\flutter.bat'' finished with non-zero exit value 1
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 21s Exception: Gradle task assembleDebug failed with exit code 1