android– 无法解析’:app @ debugcompileClasspath’的依赖关系:无法解析

android– 无法解析’:app @ debugcompileClasspath’的依赖关系:无法解析,第1张

概述新安装的AndroidStudio3.1.3在制作新项目和第一次编译时会出现奇怪的依赖项错误.类似的question没有帮助解决问题.事件日志:Unabletoresolvedependencyfor':app@debug/compileClasspath':Couldnotresolvecom.android.support:appcompat-v7:28.0.0-alpha3.OpenFile

新安装的Android Studio 3.1.3在制作新项目和第一次编译时会出现奇怪的依赖项错误.

类似的question没有帮助解决问题.

事件日志:

Unable to resolve dependency for ':app@deBUG/compileClasspath': Could not resolve com.androID.support:appcompat-v7:28.0.0-Alpha3.Open fileShow DetailsUnable to resolve dependency for ':app@deBUG/compileClasspath': Could not resolve com.androID.support.constraint:constraint-layout:1.1.2.Open fileShow DetailsUnable to resolve dependency for ':app@deBUGAndroIDTest/compileClasspath': Could not resolve com.androID.support:appcompat-v7:28.0.0-Alpha3.Open fileShow DetailsUnable to resolve dependency for ':app@deBUGAndroIDTest/compileClasspath': Could not resolve com.androID.support.constraint:constraint-layout:1.1.2.Open fileShow DetailsUnable to resolve dependency for ':app@deBUGUnitTest/compileClasspath': Could not resolve com.androID.support:appcompat-v7:28.0.0-Alpha3.Open fileShow DetailsUnable to resolve dependency for ':app@deBUGUnitTest/compileClasspath': Could not resolve com.androID.support.constraint:constraint-layout:1.1.2.Open fileShow DetailsUnable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.androID.support:appcompat-v7:28.0.0-Alpha3.Open fileShow DetailsUnable to resolve dependency for ':app@release/compileClasspath': Could not resolve com.androID.support.constraint:constraint-layout:1.1.2.Open fileShow DetailsUnable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.androID.support:appcompat-v7:28.0.0-Alpha3.Open fileShow DetailsUnable to resolve dependency for ':app@releaseUnitTest/compileClasspath': Could not resolve com.androID.support.constraint:constraint-layout:1.1.2.Open fileShow Details

截图:

这个问题发生在我身上好几次,强迫https或http也没有解决它

解决方法:

您可能正在导入应用程序而不是模块.那么你也可以在模块的gradle中更改它.

更改

apply plugin: 'com.androID.application'

apply plugin: 'com.androID.library'

您还需要从gradle中删除applicationID.

总结

以上是内存溢出为你收集整理的android – 无法解析’:app @ debug / compileClasspath’的依赖关系:无法解析全部内容,希望文章能够帮你解决android – 无法解析’:app @ debug / compileClasspath’的依赖关系:无法解析所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1101303.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-28
下一篇 2022-05-28

发表评论

登录后才能评论

评论列表(0条)

保存