Error:Failed to resolve: com.android.support:support-annotations:26.0.2
来源:互联网 发布:javascript语言精粹pdf 编辑:程序博客网 时间:2024/06/05 14:40
异常信息记录:
Error:Failed to resolve: com.android.support:support-annotations:26.0.2
Install Repository and sync project
Open File
Show in Project Structure dialog
解决方法:
在项目的build.gradle里面最上层填写这样一句话:
configurations.all { resolutionStrategy.force 'com.android.support:support-annotations:23.1.0'}
最后附上一个简单的build.gradle为例:
apply plugin: 'com.android.application'configurations.all { resolutionStrategy.force 'com.android.support:support-annotations:23.1.0'}android { compileSdkVersion 25 buildToolsVersion "26.0.2" defaultConfig { applicationId "com.dota.musicapp" minSdkVersion 15 targetSdkVersion 25 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }}dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:25.3.1' compile 'com.android.support:design:25.3.1' compile 'com.android.support:support-v4:25.3.1' compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.jakewharton:butterknife:8.8.1' compile 'com.github.bumptech.glide:glide:3.7.0'}
阅读全文
0 0
- Error:Failed to resolve: com.android.support:support-annotations:26.0.2
- Error:Failed to resolve: com.android.support:support-annotations:26.0.2
- Error:Failed to resolve: com.android.support:support-annotations:26.0.2
- Error:Failed to resolve: com.android.support:support-annotations:26.0.2
- Failed to resolve com.android.support:support-annotations 26.0.1
- Failed to resolve: com.android.support:support-annotations
- Error:Failed to resolve: com.android.support:support-annotations:23.3.0
- Error:Failed to resolve: com.android.support:support-annotations:27.0.0
- Error:Failed to resolve: com.android.support:support-annotations:27.0.1
- Failed to resolve:com.android.support:support-annotation:26.0.2
- Error:Failed to resolve: com.android.support:appcompat-v7:25
- failed to resolve:com.android.support:appcompat
- Failed to resolve:com.android.support:xxxx
- Failed to resolve: com.android.support:support-v4:19
- Failed to resolve: com.android.support:support-v4:23.1.1
- Failed to resolve: com.android.support:support-v4:23.1.1
- Failed to resolve: com.android.support:design:26.0.0
- Failed to resolve:com.android.support:percent:26.0.0
- 测试能不能发帖
- iOS获取设备信息,MAC地址,IP地址,设备名称
- leetcode 15. 3Sum
- 国内开源镜像站点汇总
- 年利率、七日年化收益率、万份收益
- Error:Failed to resolve: com.android.support:support-annotations:26.0.2
- oracle 触发器和索引
- php获取一年或一月或一周的时间期间
- vue中把字符串带有html标签转为html渲染页面(视频门户网站)
- 在linear linked list里,如何display unique data
- 2017.10.23 硬币购物 失败总结
- 初识bower,简单用法
- iOS 手机网站支付转Native支付(使用WKUIDelegate协议获取url)
- SpringMVC + Spring + MyBatis 学习笔记:提交数据遭遇基础类型和日期类型报400错误解决方法