Launching libmain.dart on sdk gphone64 x86 64 in debug mode…
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:app:checkDebugAarMetadata’.
Could not resolve all files for configuration ‘:app:debugRuntimeClasspath’.
Could not resolve io.flutter:flutter_embedding_debug:1.0.0-c4cd48e186460b32d44585ce3c103271ab676355.
Required by:
project :app
> Could not resolve io.flutter:flutter_embedding_debug:1.0.0-c4cd48e186460b32d44585ce3c103271ab676355.
> Could not get resource ‘https://storage.googleapis.com/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-c4cd48e186460b32d44585ce3c103271ab676355/flutter_embedding_debug-1.0.0-c4cd48e186460b32d44585ce3c103271ab676355.pom’.
> Could not GET ‘https://storage.googleapis.com/download.flutter.io/io/flutter/flutter_embedding_debug/1.0.0-c4cd48e186460b32d44585ce3c103271ab676355/flutter_embedding_debug-1.0.0-c4cd48e186460b32d44585ce3c103271ab676355.pom’. Received status code 403 from server: Forbidden
Could not resolve io.flutter:x86_64_debug:1.0.0-c4cd48e186460b32d44585ce3c103271ab676355.
Required by:
project :app
> Could not resolve io.flutter:x86_64_debug:1.0.0-c4cd48e186460b32d44585ce3c103271ab676355.
> Could not get resource ‘https://storage.googleapis.com/download.flutter.io/io/flutter/x86_64_debug/1.0.0-c4cd48e186460b32d44585ce3c103271ab676355/x86_64_debug-1.0.0-c4cd48e186460b32d44585ce3c103271ab676355.pom’.
> Could not GET ‘https://storage.googleapis.com/download.flutter.io/io/flutter/x86_64_debug/1.0.0-c4cd48e186460b32d44585ce3c103271ab676355/x86_64_debug-1.0.0-c4cd48e186460b32d44585ce3c103271ab676355.pom’. Received status code 403 from server: Forbidden
Could not resolve io.flutter:x86_debug:1.0.0-c4cd48e186460b32d44585ce3c103271ab676355.
Required by:
project :app
> Could not resolve io.flutter:x86_debug:1.0.0-c4cd48e186460b32d44585ce3c103271ab676355.
> Could not get resource ‘https://storage.googleapis.com/download.flutter.io/io/flutter/x86_debug/1.0.0-c4cd48e186460b32d44585ce3c103271ab676355/x86_debug-1.0.0-c4cd48e186460b32d44585ce3c103271ab676355.pom’.
> Could not GET ‘https://storage.googleapis.com/download.flutter.io/io/flutter/x86_debug/1.0.0-c4cd48e186460b32d44585ce3c103271ab676355/x86_debug-1.0.0-c4cd48e186460b32d44585ce3c103271ab676355.pom’. Received status code 403 from server: Forbidden
- 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 3s
Running Gradle task ‘assembleDebug’… 4.5s
[!] Gradle threw an error while downloading artifacts from the network.
i get this error everytime i try to run flutter on my android emulator. my android emulator has no problem it’s downloaded by android studio im trying to run it using vscode (the reason i don’t use android studio is that it gives error 451 when downloading dart plugin) what should i do ?
i tried any solution i could find and i still cannot run it on my emulator
2
Answers
the issue was from vscode. i used android studio and it fixed itself :)
as you can see in the error you’re getting in the console:
Make sure to have an internet connection while trying to run the app so all the artifacts get downloaded correctly.
This error is probably related to the Android emulator. Please Try running the app on a physical device and see if you’re gonna have the same error, and confirm.