无法解析 ':app@debug/compileClasspath' 的依赖关系:无法解析 com.android.support:appcompat-v7:26.1.0.
无法解析 com.android.support:appcompat-v7:26.1.0.
要求:项目:app
<块引用>没有可用于离线模式的 com.android.support:appcompat-v7:26.1.0 的缓存版本.
无法解析配置:app:debugCompileClasspath"的所有文件.
无法解析 com.android.support:appcompat-v7:26.1.0.
要求:
项目:应用程序
com.android.support:appcompat-v7:26.1.0 没有缓存版本可用于离线模式.
com.android.support:appcompat-v7:26.1.0 没有缓存版本可用于离线模式.
无法解析 com.android.support.constraint:constraint-layout:1.1.0-beta3.
要求:
项目:应用程序
没有缓存版本的 com.android.support.constraint:constraint-layout:1.1.0-beta3 可用于离线模式.
没有缓存版本的 com.android.support.constraint:constraint-layout:1.1.0-beta3 可用于离线模式.
无法解析 com.android.support:design:26.1.0.
要求:
项目:应用程序
com.android.support:design:26.1.0 没有缓存版本可用于离线模式.
com.android.support:design:26.1.0 没有缓存版本可用于离线模式.
无法解析 com.android.support:cardview-v7:26.1.0.
要求:
项目:应用程序
com.android.support:cardview-v7:26.1.0 没有缓存版本可用于离线模式.
com.android.support:cardview-v7:26.1.0 没有缓存版本可用于离线模式.
无法解析 com.google.android.gms:play-services-ads:11.4.2.
要求:
项目:应用程序
com.google.android.gms:play-services-ads:11.4.2 没有缓存版本可用于离线模式.
com.google.android.gms:play-services-ads:11.4.2 没有缓存版本可用于离线模式.
无法解析 com.android.support:support-v4:26.1.0.
要求:
项目:应用程序
没有缓存版本的 com.android.support:support-v4:26.1.0 可用于离线模式.
没有缓存版本的 com.android.support:support-v4:26.1.0 可用于离线模式.
错误日志图片:
转到文件->其他设置->默认设置->构建、执行、部署->构建工具->Gradle->取消选中离线工作选项.
Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.1.0.
Could not resolve com.android.support:appcompat-v7:26.1.0.
Required by: project :app
No cached version of com.android.support:appcompat-v7:26.1.0 available for offline mode.
Could not resolve all files for configuration ':app:debugCompileClasspath'.
Could not resolve com.android.support:appcompat-v7:26.1.0.
Required by:
project :app
No cached version of com.android.support:appcompat-v7:26.1.0 available for offline mode.
No cached version of com.android.support:appcompat-v7:26.1.0 available for offline mode.
Could not resolve com.android.support.constraint:constraint-layout:1.1.0-beta3.
Required by:
project :app
No cached version of com.android.support.constraint:constraint-layout:1.1.0-beta3 available for offline mode.
No cached version of com.android.support.constraint:constraint-layout:1.1.0-beta3 available for offline mode.
Could not resolve com.android.support:design:26.1.0.
Required by:
project :app
No cached version of com.android.support:design:26.1.0 available for offline mode.
No cached version of com.android.support:design:26.1.0 available for offline mode.
Could not resolve com.android.support:cardview-v7:26.1.0.
Required by:
project :app
No cached version of com.android.support:cardview-v7:26.1.0 available for offline mode.
No cached version of com.android.support:cardview-v7:26.1.0 available for offline mode.
Could not resolve com.google.android.gms:play-services-ads:11.4.2.
Required by:
project :app
No cached version of com.google.android.gms:play-services-ads:11.4.2 available for offline mode.
No cached version of com.google.android.gms:play-services-ads:11.4.2 available for offline mode.
Could not resolve com.android.support:support-v4:26.1.0.
Required by:
project :app
No cached version of com.android.support:support-v4:26.1.0 available for offline mode.
No cached version of com.android.support:support-v4:26.1.0 available for offline mode.
Error log image:
Go to File->Other Settings->Default Settings->Build, Execution, Deployment->Build Tools->Gradle->Uncheck Offline work option.
这篇关于无法解析“:app@debug/compileClasspath"的依赖关系:无法解析com.android.support:appcompat-v7:26.1.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!