依赖ConstraintLayout报错:Could not find com.android.support.constraint:constraint-layout:1.0.0-beta5
来源:互联网 发布:商之翼yii2源码 编辑:程序博客网 时间:2024/05/19 14:56
ConstraintLayout是Android Studio 2.2中主要的新增功能之一,方便开发者使用图形化界面来完成UI布局,减少布局嵌套。
在进行布局转换时,我们需要添加依赖:
- compile 'com.android.support.constraint:constraint-layout:1.0.0-beta5'
(注:当前Android Studio已更新到2.3版本,最新的ConstraintLayout版本为1.0.1正式版。)
但是同步的时候可能出现以下错误:
Could not find com.android.support.constraint:constraint-layout:1.0.0-beta5
解决方法:
在工具栏选择 Tools --> Android --> SDK Manager,勾选上 Support Repository中 的ConstraintLayout for Android 和Solver for ConstraintLayout,如下图:
之后同步并重建就可以了,如果布局界面有错误提示,可尝试重启Android Studio。
阅读全文
1 0
- 依赖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
- 找不到依赖包:Could not find com.android.support.constraint:constraint-layout:1.0.1
- Could not find com.android.support.constraint:constraint-layout解决方案
- Android studio Could not find com.android.support.constraint:constraint-layout:1.0.0-alpha3解决方案
- Gradle 同步时报错,Could not find com.android.support.constraint:constraint-layout:1.0.0-alpha9的解决方法
- Error:Could not find com.android.support.constraint:constraint-layout:1.0.2.
- Could not find com.android.support.constraint:constraint-layout:1.0.2错误的解决
- Error:Could not find com.android.support.constraint:constraint-layout:1.0.2.
- 导入项目出现:Could not find com.android.support.constraint:constraint-layout:2.0.0-alpha8的解决方法
- 导入项目出现:Could not find com.android.support.constraint:constraint-layout:2.0.0-alpha8的解决方法
- Android开发:android studio报错: Failed to resolve: com.android.support.constraint:constraint-layout:1.0.
- com.android.support.constraint:constraint-layout
- android.support.constraint.ConstraintLayout
- Android Studio - Error: Failed to resolve: com.android.support.constraint:constraint-layout:1.0.0-al
- Failed to resolve: com.android.support.constraint:constraint-layout:1.0.0-alpha9 <a
- failed to resolve com.android.support.constraint:constraint-layout解决办法
- Failed to resolve: com.android.support.constraint:constraint-layout
- SQL查询~ 存在一个表而不在另一个表中的数据
- Spring(五)使用Spring集成MyBatis
- VS2015 安装web essentials导致无法打开MVC视图文件(chtml)
- 图像旋转-不同插值法比较——MATLAB
- Windows环境下的PHP环境的安装及配置—-WAMP
- 依赖ConstraintLayout报错:Could not find com.android.support.constraint:constraint-layout:1.0.0-beta5
- Day13-reflect反射
- 黑化的牛牛
- Tomcat配置连接池【JNDI资源】
- Effective Modern C++: Item 5 -> 优先选择auto而不是显式类型声明
- Mysql之多表设计之外键约束
- java中POJO类为什么要实现序列化
- linux下memcached的安装、php-memcached拓展安装
- 修改mac环境变量