首页 > 移动平台 > 详细

导入项目的时候报错Error:Could not find com.android.support.constraint:constraint-layout:1.0.0-alpha7

时间:2017-09-17 16:25:20      阅读:2182      评论:0      收藏:0      [点我收藏+]

问题描述

今天在导入项目的时候报错:

Error:Could not find com.android.support.constraint:constraint-layout:1.0.0-alpha7.

技术分享

原因是:没有下载相应版本的ConstraintLayout。

解决方案

工具栏上选择 Tools --> Android -->SDK Manager 

技术分享

切换到SDK Tools选项,在右下角处勾选 Show Package Details

 技术分享

Support Repository下的ConstraintLayout for Android 和 Solver for ConstraintLayout 中选中自己需要的版本(gradle中依赖的版本)

技术分享

点OK进行下载

 技术分享

技术分享

再同步gradle就可以了

 技术分享

参考资料

依赖ConstraintLayout报错,Could not find *****,Failed to resolve:*****

 

导入项目的时候报错Error:Could not find com.android.support.constraint:constraint-layout:1.0.0-alpha7

原文:http://www.cnblogs.com/whycxb/p/7484827.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!