When I am trying to launch my flutter application on my device, I am getting this error
flutter run
Launching lib/main.dart on CPH1827 in debug mode...
../../../flutter/.pub-cache/hosted/pub.dartlang.org/http-0.12.2/lib/src/io_client.dart:32:9: Error: Expected an identifier, but got '..'.
..followRedirects = request.followRedirects
^^
FAILURE: Build failed with an exception.
* Where:
Script '/home/mir/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 904
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/home/mir/flutter/bin/flutter'' 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 19s
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 19.8s
Exception: Gradle task assembleDebug failed with exit code 1
How can I resolve it? Any help greatly appreciated.
Thanks
Aucun commentaire:
Enregistrer un commentaire