I am using visual studio and i have installed flutter and dart on it, when i test debugging I got errors after long time. I am using Ubuntu:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.3 LTS
Release: 20.04
Codename: focal
When I run flutter doctor i got:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.2.1, on Linux, locale en_US.UTF-8)
[!] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
✗ Android license status unknown.
Run `flutter doctor --android-licenses` to accept the SDK licenses.
See https://flutter.dev/docs/get-started/install/linux#android-setup for more details.
[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Android Studio (version 2020.3)
[✓] Connected device (1 available)
! Doctor found issues in 2 categories.
And the errors i got:
Installing Android SDK Platform 30 in /home/mea/Android/Sdk/platforms/android-30
"Install Android SDK Platform 30 (revision: 3)" complete.
"Install Android SDK Platform 30 (revision: 3)" finished.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not download x86_debug-1.0.0-0fdb562ac8068ce3dda6b69aca3f355f4d1d2718.jar (io.flutter:x86_debug:1.0.0-0fdb562ac8068ce3dda6b69aca3f355f4d1d2718)
> Could not get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_debug/1.0.0-0fdb562ac8068ce3dda6b69aca3f355f4d1d2718/x86_debug-1.0.0-0fdb562ac8068ce3dda6b69aca3f355f4d1d2718.jar'.
> Could not GET 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_debug/1.0.0-0fdb562ac8068ce3dda6b69aca3f355f4d1d2718/x86_debug-1.0.0-0fdb562ac8068ce3dda6b69aca3f355f4d1d2718.jar'.
> Connect to storage.googleapis.com:443 [storage.googleapis.com/142.250.200.112, storage.googleapis.com/172.217.17.16, storage.googleapis.com/142.250.201.80, storage.googleapis.com/172.217.168.176, storage.googleapis.com/142.250.200.80, storage.googleapis.com/216.58.215.176, storage.googleapis.com/216.58.215.144, storage.googleapis.com/142.250.184.16, storage.googleapis.com/216.58.209.80, storage.googleapis.com/142.250.185.16, storage.googleapis.com/142.250.200.144, storage.googleapis.com/142.250.184.176, storage.googleapis.com/2a00:1450:4003:80a:0:0:0:2010, storage.googleapis.com/2a00:1450:4003:80c:0:0:0:2010, storage.googleapis.com/2a00:1450:4003:802:0:0:0:2010, storage.googleapis.com/2a00:1450:4003:801:0:0:0:2010] failed: Network is unreachable (connect failed)
> Could not download x86_64_debug-1.0.0-0fdb562ac8068ce3dda6b69aca3f355f4d1d2718.jar (io.flutter:x86_64_debug:1.0.0-0fdb562ac8068ce3dda6b69aca3f355f4d1d2718)
> Could not get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_64_debug/1.0.0-0fdb562ac8068ce3dda6b69aca3f355f4d1d2718/x86_64_debug-1.0.0-0fdb562ac8068ce3dda6b69aca3f355f4d1d2718.jar'.
> Could not GET 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_64_debug/1.0.0-0fdb562ac8068ce3dda6b69aca3f355f4d1d2718/x86_64_debug-1.0.0-0fdb562ac8068ce3dda6b69aca3f355f4d1d2718.jar'.
> Connect to storage.googleapis.com:443 [storage.googleapis.com/142.250.200.112, storage.googleapis.com/172.217.17.16, storage.googleapis.com/142.250.201.80, storage.googleapis.com/172.217.168.176, storage.googleapis.com/142.250.200.80, storage.googleapis.com/216.58.215.176, storage.googleapis.com/216.58.215.144, storage.googleapis.com/142.250.184.16, storage.googleapis.com/216.58.209.80, storage.googleapis.com/142.250.185.16, storage.googleapis.com/142.250.200.144, storage.googleapis.com/142.250.184.176, storage.googleapis.com/2a00:1450:4003:80a:0:0:0:2010, storage.googleapis.com/2a00:1450:4003:80c:0:0:0:2010, storage.googleapis.com/2a00:1450:4003:802:0:0:0:2010, storage.googleapis.com/2a00:1450:4003:801:0:0:0:2010] failed: Network is unreachable (connect failed)
* 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 9m 30s
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)
And i accepted the license and it doesn’t work.