依赖ConstraintLayout报错,Could not find *****,Failed to resolve:*****
来源:互联网 发布:网络软文推广公司 编辑:程序博客网 时间:2024/05/16 14:44
ConstraintLayout 约束布局,AndroidStudio2.2中新增功能之一,可以先去看看这篇文章 Android新特性介绍,ConstraintLayout完全解析,2.3版本的AndroidStudio支持在约束布局中使用 Chains(链接) 和 Ratio(比例) 。
使用ConstraintLayout可以在gradle中添加依赖。
compile 'com.android.support.constraint:constraint-layout:1.0.0-beta5'
clone别人的项目时发现报错误:
Failed to resolve:com.android.support.constraint:constraint-layout:1.0.0-beta5
或
Could not find com.android.support.constraint:constraint-layout:1.0.0-beta5
AndroidStudio更新到2.3版本,ConstraintLayout跟着更新到了1.0.1,所以报错了
解决办法: 工具栏上选择 Tools --> Android -->SDK Manager 切换到SDK Tools选项
在右下角处勾选 Show Package Details,
在Support Repository下的ConstraintLayout for Android 和 Solver for ConstraintLayout 中选中自己需要的版本(gradle中依赖的版本)
点OK,再同步gradle就可以了。
搞定。
阅读全文
0 0
- 依赖ConstraintLayout报错,Could not find *****,Failed to resolve:*****
- 依赖ConstraintLayout报错,Could not find *****,Failed to resolve:*****
- 依赖ConstraintLayout报错:Could not find com.android.support.constraint:constraint-layout:1.0.0-beta5
- 依赖ConstraintLayout报错:Could not find com.android.support.constraint:constraint-layout:1.0.0-beta5
- mvn -deploy 报错Failed to deploy artifacts: Could not find artifact
- maven3打包报错Failed to execute goal on project testaa: Could not resolve dependencies for project
- 依赖ConstraintLayout报错
- VS报错could not resolve property
- Eclipse报错Could not resolve archetype
- maven依赖的项目报错Could not resolve dependencies for project
- Vue 报错 Failed to resolve filter
- 报错信息:Could not find artifact
- 运行安卓报Could not find ****.apk和Failed to load ****dx.jar错的解决办法
- 报错信息:Could not resolve placeholder 'project.build.testOutputDirectory'
- Jenkins 构建报错 Could not resolve dependencies for project
- Could not resolve dependencies for project . Could not find artifact
- spring报“Could not resolve placeholder”错误
- spring报“Could not resolve placeholder”错误
- 51nod 1572 宝岛地图(思维)
- 文章标题 ThinkPHP3.2.2-搜索分页
- getElementsByName返回值为Object
- linux下安装并配置redis 修改默认端口号,防止入侵
- 给定两个字符串,请设计一个方法来判定其中一个字符串是否为另一个字符串的置换(容易)
- 依赖ConstraintLayout报错,Could not find *****,Failed to resolve:*****
- iOS UITextView输入时自适应高度,placeholderLabel的设置。
- 一个有特点的正六边形RecyclerView---HexagonRecyclerView介绍篇
- 2017-07-20:考试(组合数、杨辉三角)SOJP1796
- PHP 读取xls文件
- 介绍一个使用 MVVM 和 RAC 开发的开源项目 MVVMReactiveCocoa
- 51Nod-1010 只包含因子2 3 5的数【打表+排序+二分搜索】
- 统治世界的十大算法
- 体检分析