当前位置:网站首页>[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' }}
边栏推荐
- 理想汽车×OceanBase:当造车新势力遇上数据库新势力
- Win11麦克风测试在哪里?Win11测试麦克风的方法
- Sword finger offer II 099 Sum of minimum paths - double hundred code
- C MVC creates a view to get rid of the influence of layout
- [live broadcast appointment] database obcp certification comprehensive upgrade open class
- BBR 遭遇 CUBIC
- How can cross-border e-commerce achieve low-cost and steady growth by laying a good data base
- Application of containerization technology in embedded field
- 聊聊内存模型与内存序
- Static file display problem
猜你喜欢
Loss function~
密码技术---分组密码的模式
How difficult is it to be high? AI rolls into the mathematics circle, and the accuracy rate of advanced mathematics examination is 81%!
Print out mode of go
一文掌握基于深度学习的人脸表情识别开发(基于PaddlePaddle)
Yolox enhanced feature extraction network panet analysis
[live broadcast appointment] database obcp certification comprehensive upgrade open class
4 special cases! Schools in area a adopt the re examination score line in area B!
Detailed explanation and application of merging and sorting
Win11系统explorer频繁卡死无响应的三种解决方法
随机推荐
非路由组件之头部组件和底部组件书写
SQL进阶语法
Loss function~
Convolution和Batch normalization的融合
20220524_数据库过程_语句留档
Interface switching based on pyqt5 toolbar button -2
YOLOX加强特征提取网络Panet分析
C#中Linq用法汇集
潘多拉 IOT 开发板学习(HAL 库)—— 实验4 串口通讯实验(学习笔记)
内网渗透 | 手把手教你如何进行内网渗透
【STL源码剖析】仿函数(待补充)
程序员版本的八荣八耻~
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:
Ping domain name error unknown host, NSLOOKUP / system d-resolve can be resolved normally, how to Ping the public network address?
4 special cases! Schools in area a adopt the re examination score line in area B!
Use redis to realize self increment serial number
2022 latest and complete interview questions for software testing
php 获取真实ip
基于FPGA的VGA协议实现
SharedPreferences save list < bean > to local and solve com google. gson. internal. Linkedtreemap cannot be cast to exception