Android 构建项目报错
程序员文章站
2022-03-16 15:52:39
Error:A problem occurred configuring project ':app'. > Could not resolve all de...
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就可以了。