当前位置:网站首页>[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' }}边栏推荐
- Where is the win11 automatic shutdown setting? Two methods of setting automatic shutdown in win11
- golang入门:for...range修改切片中元素的值的另类方法
- Pandora IOT development board learning (HAL Library) - Experiment 4 serial port communication experiment (learning notes)
- 【Redis笔记】压缩列表(ziplist)
- 基于Pyqt5工具栏按钮可实现界面切换-2
- 实现BottomNavigationView和Navigation联动
- 【Proteus仿真】51单片机+LCD12864推箱子游戏
- CDN acceleration requires the domain name to be filed first
- Implementation of VGA protocol based on FPGA
- php 获取真实ip
猜你喜欢

RecyclerView结合ViewBinding的使用

Solution: exceptiole 'xxxxx QRTZ_ Locks' doesn't exist and MySQL's my CNF file append lower_ case_ table_ Error message after names startup

Prometheus deployment

深度剖析数据在内存中的存储----C语言篇

潘多拉 IOT 开发板学习(HAL 库)—— 实验4 串口通讯实验(学习笔记)

Implementation of VGA protocol based on FPGA

Strictly abide by the construction period and ensure the quality, this AI data annotation company has done it!

Hisilicon VI access video process

程序员版本的八荣八耻~

How difficult is it to be high? AI rolls into the mathematics circle, and the accuracy rate of advanced mathematics examination is 81%!
随机推荐
20220524_数据库过程_语句留档
How does win11 turn on visual control? Win11 method of turning on visual control
"A good programmer is worth five ordinary programmers!"
Yolox enhanced feature extraction network panet analysis
@BindsInstance在Dagger2中怎么使用
2022 latest and complete interview questions for software testing
Hisilicon VI access video process
Go basic constant definition and use
聊聊内存模型与内存序
Doorplate making C language
抖音实战~点赞数量弹框
Catalogue of digital image processing experiments
C# MVC创建一个视图摆脱布局的影响
采用VNC Viewer方式远程连接树莓派
Compose 中的 'ViewPager' 详解 | 开发者说·DTalk
Ping domain name error unknown host, NSLOOKUP / system d-resolve can be resolved normally, how to Ping the public network address?
Mapper代理开发
Use of recyclerview with viewbinding
Realize the linkage between bottomnavigationview and navigation
基于Pyqt5工具栏按钮可实现界面切换-1