Launching lib\cn\xinzhili\patient\ui\main.dart on MHA AL00 in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve com.android.tools.build:builder:3.5.0.
Required by:
project : > com.android.tools.build:gradle:3.5.0
> Could not resolve com.android.tools.build:builder:3.5.0.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/builder/3.5.0/builder-3.5.0.pom'.
> Could not HEAD 'https://jcenter.bintray.com/com/android/tools/build/builder/3.5.0/builder-3.5.0.pom'.
> Read timed out
> Could not resolve com.android.tools.build:bundletool:0.9.0.
Required by:
project : > com.android.tools.build:gradle:3.5.0
> Could not resolve com.android.tools.build:bundletool:0.9.0.
> Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/bundletool/0.9.0/bundletool-0.9.0.jar'.
> Could not HEAD 'https://jcenter.bintray.com/com/android/tools/build/bundletool/0.9.0/bundletool-0.9.0.jar'.
> Read timed out
* 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 3m 59s
Finished with error: Gradle task assembleDebug failed with exit code 1
解决办法:
将图中的google()替换成
maven { url “https://dl.google.com/dl/android/maven2/” }
项目重新build的一下,就好了。
Flutter项目报错:Launching lib\cn\xinzhili\patient\ui\main.dart on MHA AL00 in debug mode...Running Gradle task 'assembleDebug'...FAILURE: Build failed with an exception.* What went wrong:A problem ...
报错信息
Compiler message:
../../../.pub-cache/hosted/pub.flutter-io.cn/cached_network_image-1.1.3/lib/src/cached_network_image_provider.dart:42:24: Error: The method 'CachedNetworkImageProvider.load' has fewer positional arguments than those of overridden method 'ImageProvider.load'.
ImageStreamCompl
A problem occurred evaluating project ':app'.
> Could not resolve all files for configuration 'classpath'.
> Could not find lint-gradle-api.jar (com.android.tools.li...
每次拉取其它分支,上图中红框中文件就会消失,启动项目,报错:
A problem occurred configuring root project 'project_name'.
> Could not resolve all dependencies for configuration ':classpath'.
> Using insecure protocols with repositories, without explicit opt-in, is unsu...
* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'.
> Failed to transform libs.jar to match attributes..
错误日志1:Could not resolve all files for configuration ':classpath',后面还有一堆日志是说依赖无法下载的,此处不列出了。
错误日志2:Unable to resolve dependency for ':app@debug/compileClasspath': Could not find any version that matche...
一般出现这种情况,在project级别下的build.gradle文件中你配置的仓库,没有该库。
出现访问不了链接,那么会报出连接超时啥或者找不到该地址。自己的电脑配置翻墙软件,会能顺利访问国外的网站,
但是没有翻墙软件,可以使用阿里提供的仓库服务,但是有时你不知道到底哪个仓库地址有你需要的库,比如我一直以为
Google提供的vr的sdk:com.google.vr:sdk-base:1.200.0 是仓库名为google的地址下获取,然后通过自己找,并找不到
该库。最后通过自己常识去搜索,发..
Flutter构建失败,ERROR:Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.
第一种方法:
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> Could n
flutter helloworld项目报错:Could not resolve all files for configuration ‘:app:_internal_aapt2_binary’.
继续浏览的前提是你已经实现了科学上网,并确保在AS中设置的proxy代理测试是通过的。注意一定要在AS中再设置一次Proxy(或者直接设置http_proxy和https_proxy全局变量代理),科学上网工具的全局代理不一定在AS中起作用。
1. 根据错误提示手动删除过,也试过网友介绍的其他方法例如andr
今天遇到一个很坑的问题,排查了许久,网上也找了资料都没解决,最后还是耐下心来分析Log和网上的解决思路才知道问题所在,最终只修改了一丢丢代码和配置即解决了上述问题
运行一个之前OK的Flutter项目时报错,Log类似如下:
* What went wrong:
Execution failed for task ':firebase_core:javaPreCompileDebug'.
> Could not resolve all files for configuration 'xxx
android studio出现Could not resolve all dependencies for configuration ‘:app:debugRuntimeClasspath’. Could not create task ‘:app:minifyReleaseWithR8’. Cannot query the value of this provider because it has no value available.
解决报错:Could not resolve all depen
* What went wrong:
Could not resolve all files for configuration ':app:debugCompileClasspath'.
> Could not resolve com.google.android.gms:pla...
在开发的过程中,同步代码的时候,突然出现这个报错信息:
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all artifacts for configuration ':classpath'.
这让本来比较烦躁的我,突然想爆粗WTF,算了还是解决问题比较重要!
那肯定是找资料解决问题啦,然后就是看各
Flutter踩坑之 Could not build the application for the simulatorError launching application on iPhone 11
16282
Flutter踩坑之The 'Pods-Runner' target has transitive dependencies that include statically linked
12237
Flutter踩坑之 Could not build the application for the simulatorError launching application on iPhone 11
大白金星:
Flutter踩坑之 Could not build the application for the simulatorError launching application on iPhone 11
大白金星:
Flutter踩坑之 Could not find io.flutter.....
qq_43186267:
Flutter踩坑之 Could not build the application for the simulatorError launching application on iPhone 11
qq_38358909:
Flutter踩坑之 Could not build the application for the simulatorError launching application on iPhone 11
BIGBOSSyifi: