当前位置: 移动技术网 > IT编程>移动开发>Android > Android 构建项目报错

Android 构建项目报错

2018年02月18日  | 移动技术网IT编程  | 我要评论

王礼忠,绫濑迪亚娜,谁说农妇没有春天

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就可以了。

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网