Error:A problem occurred configuring project ':app'. > Could not resolve all dependencies for configuration ':app:_debugApkCopy'. > Could not find any version that matches com.android.support:appcompat-v7:27.+. Versions that do not match:
对于这个报错花费了一段时间:最终摸索出来 。
步骤: 打开project->app找到build.gradle注意不是下面那个build.gradle
1.compileSdkVersion 27改为24
2.找到 targetSdkVersion将其后面的27改为24;
3.compile 'com.android.support:appcompat-v7:27.2.1' 27改为24
具体得看你自己的sdk能兼容到多少,我的是27不行,24就可以了。
其他问题可参考这博客:点击打开链接
本文介绍了如何解决在Android项目中因依赖配置不匹配导致的构建失败问题。通过调整build.gradle文件中的compileSdkVersion、targetSdkVersion及appcompat-v7版本等设置,成功解决了构建过程中出现的依赖冲突。
3587

被折叠的 条评论
为什么被折叠?



