当前位置:网站首页>[error record] the flutter reports an error (could not resolve io.flutter:flutter_embedding_debug:1.0.0.)
[error record] the flutter reports an error (could not resolve io.flutter:flutter_embedding_debug:1.0.0.)
2022-07-02 23:29:00 【Programmer community】
One 、 Error message
I downloaded one from the Internet Flutter Project code , When open , Report the following error ;
Launching lib\main.dart on Pixel 2 in debug mode...Running Gradle task 'assembleDebug'...FAILURE: Build failed with an exception.* What went wrong:Could not determine the dependencies of task ':app:preDebugBuild'.> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'. > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c. Required by: project :app project :app > project :image_picker project :app > project :url_launcher > Could not resolve io.flutter:flutter_embedding_debug:1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c. > Could not get resource 'https://jcenter.bintray.com/io/flutter/flutter_embedding_debug/1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c/flutter_embedding_debug-1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c.pom'. > Could not HEAD 'https://jcenter.bintray.com/io/flutter/flutter_embedding_debug/1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c/flutter_embedding_debug-1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c.pom'. Received status code 500 from server: Internal Server Error > Could not resolve io.flutter:arm64_v8a_debug:1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c. Required by: project :app > Could not resolve io.flutter:arm64_v8a_debug:1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c. > Could not get resource 'https://jcenter.bintray.com/io/flutter/arm64_v8a_debug/1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c/arm64_v8a_debug-1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c.pom'. > Could not HEAD 'https://jcenter.bintray.com/io/flutter/arm64_v8a_debug/1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c/arm64_v8a_debug-1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c.pom'. Received status code 500 from server: Internal Server Error > Could not resolve io.flutter:x86_debug:1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c. Required by: project :app > Could not resolve io.flutter:x86_debug:1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c. > Could not get resource 'https://jcenter.bintray.com/io/flutter/x86_debug/1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c/x86_debug-1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c.pom'. > Could not HEAD 'https://jcenter.bintray.com/io/flutter/x86_debug/1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c/x86_debug-1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c.pom'. Received status code 502 from server: Bad Gateway > Could not resolve io.flutter:x86_64_debug:1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c. Required by: project :app > Could not resolve io.flutter:x86_64_debug:1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c. > Could not get resource 'https://jcenter.bintray.com/io/flutter/x86_64_debug/1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c/x86_64_debug-1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c.pom'. > Could not HEAD 'https://jcenter.bintray.com/io/flutter/x86_64_debug/1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c/x86_64_debug-1.0.0-e1e6ced81d029258d449bdec2ba3cddca9c2ca0c.pom'. Received status code 502 from server: Bad Gateway* 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.orgBUILD FAILED in 4sFinished with error: Gradle task assembleDebug failed with exit code 1
Two 、 Solution
stay Flutter Under the project of android/build.gradle The configuration is as follows :
stay repositories Configure the following sources : Comment out google() and jcenter() , And add the following code , Do not move other configurations ;
maven {
url 'https://maven.aliyun.com/repository/google' }maven {
url 'https://maven.aliyun.com/repository/jcenter' }maven {
url 'http://maven.aliyun.com/nexus/content/groups/public' }maven {
url "http://download.flutter.io" }The complete code is as follows :
buildscript {
repositories {
//google() //jcenter() maven {
url 'https://maven.aliyun.com/repository/google' } maven {
url 'https://maven.aliyun.com/repository/jcenter' } maven {
url 'http://maven.aliyun.com/nexus/content/groups/public' } maven {
url "http://download.flutter.io" } } dependencies {
classpath 'com.android.tools.build:gradle:3.3.0' }}allprojects {
repositories {
//google() //jcenter() maven {
url 'https://maven.aliyun.com/repository/google' } maven {
url 'https://maven.aliyun.com/repository/jcenter' } maven {
url 'http://maven.aliyun.com/nexus/content/groups/public' } maven {
url "http://download.flutter.io" } }}rootProject.buildDir = '../build'subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"}subprojects {
project.evaluationDependsOn(':app')}task clean(type: Delete) {
delete rootProject.buildDir}
The problem has been solved by using the above scheme ;
3、 ... and 、 alternative
( The scheme has not been tested )
stay flutter\packages\flutter_tools\gradle\resolve_dependencies.gradle in ,

Add the following code :
maven {
url 'http://download.flutter.io'}Note where to add :

repositories Configuration after adding :
repositories {
google() jcenter() maven {
url "$storageUrl/download.flutter.io" } maven {
url 'http://download.flutter.io' }}边栏推荐
- Third party payment function test point [Hangzhou multi tester _ Wang Sir] [Hangzhou multi tester]
- [redis notes] compressed list (ziplist)
- Tronapi wave field interface - source code without encryption - can be opened twice - interface document attached - packaging based on thinkphp5 - detailed guidance of the author - July 1, 2022 08:43:
- Mapper代理开发
- Solution: exceptiole 'xxxxx QRTZ_ Locks' doesn't exist and MySQL's my CNF file append lower_ case_ table_ Error message after names startup
- Boost库链接错误解决方案
- Eight bit responder [51 single chip microcomputer]
- 数据集-故障诊断:西储大学轴承的各项数据以及数据说明
- 密码技术---密钥和SSL/TLS
- JSON数据传递参数
猜你喜欢

Markdown basic grammar

2022 latest and complete interview questions for software testing

CDN 加速,需要域名先备案

I've been interviewed. The starting salary is 16K

(stinger) use pystinger Socks4 to go online and not go out of the network host

一文掌握基于深度学习的人脸表情识别开发(基于PaddlePaddle)

Three solutions to frequent sticking and no response of explorer in win11 system

Win11如何开启目视控制?Win11开启目视控制的方法
![[live broadcast appointment] database obcp certification comprehensive upgrade open class](/img/d8/a367c26b51d9dbaf53bf4fe2a13917.png)
[live broadcast appointment] database obcp certification comprehensive upgrade open class

RuntimeError: no valid convolution algorithms available in CuDNN
随机推荐
在SOUI里使用真窗口时使用SOUI的滚动条
Detailed explanation and application of merging and sorting
聊聊内存模型与内存序
2022 latest and complete interview questions for software testing
采用VNC Viewer方式远程连接树莓派
力扣刷题(2022-6-28)
Prometheus deployment
2022年最新最全软件测试面试题大全
Alibaba cloud award winning experience: how to use polardb-x
海思调用接口之Makefile配置
MarkDown基本语法
万物并作,吾以观复|OceanBase 政企行业实践
Call vs2015 with MATLAB to compile vs Project
[adjustment] postgraduate enrollment of Northeast Petroleum University in 2022 (including adjustment)
简述中台的常识
非路由组件之头部组件和底部组件书写
Writing of head and bottom components of non routing components
BBR encounters cubic
采用VNC Viewer方式遠程連接樹莓派
2016. maximum difference between incremental elements