标签:could 1.0 mic too not repos package tail alt
Failed to resolve: com.android.support.constraint:constraint-layout:1.0.0-alpha7 依赖constraintLayout报错
1.原因分析:
使用ConstraintLayout需要在gradle中添加依赖。
compile‘com.android.support.constraint:constraint-layout:1.0.0-alpha7‘
clone别人的项目时发现报错误:
Failed to resolve:com.android.support.constraint:constraint-layout:1.0.0-alpha7
或 Could not find com.android.support.constraint:constraint-layout:1.0.0-alpha7
是因为AndroidStudio更新到2.3版本,ConstraintLayout跟着更新到了1.0.1,所以报错了
2.解决办法:
工具栏上选择 Tools --> Android -->SDK Manager 切换到SDK Tools选项
在右下角处勾选 Show Package Details,
在Support Repository下的ConstraintLayout for Android 和 Solver for ConstraintLayout 中选中自己需要的版本(gradle中依赖的版本)
点OK,再同步gradle就可以了。
问题解决-Failed to resolve: com.android.support.constraint:constraint-layout:1.0.0-alpha7
标签:could 1.0 mic too not repos package tail alt
原文地址:http://www.cnblogs.com/zly1022/p/7771544.html