新建工程时报错(26, 13) Failed to resolve: com.android.support:appcompat-v7:28.+ ,


修复新建工程时报错修复bugError:(26, 13) Failed to resolve: com.android.support:appcompat-v7:28.+ ,

查看本地sdk工具版本是25,这里的远程依赖包的版本是28,那么我们只需要将把版本减低到和sdk工具版本相同就ok啦!

修复方法:build.gradle 中 改成 compile 'com.android.support:appcompat-v7:25.+'  

dependencies {
//compile 'com.android.support:support-v4:19.1.0'
compile fileTree(exclude: '*.bak', dir: 'libs')
compile 'com.android.support:appcompat-v7:25.3.1'
}

猜你喜欢

转载自www.cnblogs.com/spps/p/9278099.html