当前位置:网站首页>[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' }}边栏推荐
- Print out mode of go
- Convolution和Batch normalization的融合
- Convolution和Batch normalization的融合
- Three solutions to frequent sticking and no response of explorer in win11 system
- Solution to boost library link error
- RuntimeError: no valid convolution algorithms available in CuDNN
- 采用VNC Viewer方式远程连接树莓派
- Jinglianwen technology's low price strategy helps AI enterprises reduce model training costs
- php 获取真实ip
- CDN 加速,需要域名先备案
猜你喜欢
![Eight bit responder [51 single chip microcomputer]](/img/4f/683948fca93a0dc1a0409839f60759.jpg)
Eight bit responder [51 single chip microcomputer]

Go basic constant definition and use

BBR encounters cubic

RecyclerView结合ViewBinding的使用

Tiktok actual combat ~ number of likes pop-up box

基于Pyqt5工具栏按钮可实现界面切换-2

Mapper代理开发

Win11系统explorer频繁卡死无响应的三种解决方法

【直播预约】数据库OBCP认证全面升级公开课

Connexion à distance de la tarte aux framboises en mode visionneur VNC
随机推荐
Is 408 not fragrant? The number of universities taking the 408 examination this year has basically not increased!
可知论与熟能生巧
BBR encounters cubic
Cryptography -- the mode of block cipher
Solution to boost library link error
Boost库链接错误解决方案
Go project operation method
Pandora IOT development board learning (HAL Library) - Experiment 3 key input experiment (learning notes)
(stinger) use pystinger Socks4 to go online and not go out of the network host
"A good programmer is worth five ordinary programmers!"
在SOUI里使用真窗口时使用SOUI的滚动条
Why does RTOS system use MPU?
理想汽车×OceanBase:当造车新势力遇上数据库新势力
Eight bit responder [51 single chip microcomputer]
The concepts of terminal voltage, phase voltage and line voltage in FOC vector control and BLDC control are still unclear
C#中Linq用法汇集
golang中new与make的区别
Detailed explanation and application of merging and sorting
采用VNC Viewer方式远程连接树莓派
Which common ports should the server open