简体   繁体   English

无法解析配置':app:debugCompileClasspath的所有依赖项

[英]Could not resolve all dependencies for configuration ':app:debugCompileClasspath

这给了我一些问题,因为我安装了AS时遇到了不同的问题,这是我尝试构建gradle时出现的最新问题,我已经清理,更新了SDK,重新启动了但至今没有解决方法,请帮忙。

我之前也遇到过此问题,因此我尝试Clean project然后尝试Rebuild project ,然后尝试invalidate caches & Restart ,从而解决了问题。

I solved my problem by removing 我通过移除解决了我的问题

maven {
     url "https://maven.google.com"
}

in the allprojects { repositeries{ ... } } lines below the buildscript { ... } lines. allprojects { repositeries{ ... } }行下面的buildscript { ... }行中。

Then, I add google() before jcenter() like that : 然后,我像这样在jcenter()之前添加google()

allprojects {
    repositories {
        google()
        jcenter()
    } 
    ...
}

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android 构建无法解析配置“:app:debugCompileClasspath”的所有文件 - Android build Could not resolve all files for configuration ':app:debugCompileClasspath' 尝试升级 gradle 并收到错误无法解析配置“:app:debugCompileClasspath”的所有文件 - try to upgrade gradle and getting error Could not resolve all files for configuration ':app:debugCompileClasspath' 无法解析配置':app:_debugApkCopy'的所有依赖项 - Could not resolve all dependencies for configuration ':app:_debugApkCopy' Gradle:无法解析配置“:classpath”的所有依赖项 - Gradle: Could not resolve all dependencies for configuration ':classpath' 无法解析配置的所有依赖项:类路径' - Could not resolve all dependencies for configuration :classpath' 无法解析配置 ':app:_debugApk' 的所有依赖项。未找到名称为 'default' 的配置 - Could not resolve all dependencies for configuration ':app:_debugApk'.Configuration with name 'default' not found 我在构建同步时收到此错误“无法解析配置的所有依赖项 ':app:debugRuntimeClasspath' - I m getting this error while build sync "Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath' 无法解析配置的所有文件':app:androidJdkImage - Could not resolve all files for configuration ':app:androidJdkImage 无法解析配置 ':app:androidApis' 的所有文件 - Could not resolve all files for configuration ':app:androidApis' 无法解析配置“:app:prereleaseCompileClasspath”的所有工件 - Could not resolve all artifacts for configuration ':app:prereleaseCompileClasspath'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM