gradle项目同步失败.Android Studio [英] gradle project sync failed . android studio
问题描述
我是android新手,在图片中我对此有疑问:
i'm new to android and i have a problem with this in the picture :
我厌倦了更新约束布局和约束布局求解器,但是每次我尝试在sdk管理器中进行更新时,更新都会成功完成,但是当我再次查看sdk管理器时,则未选中.例如,在成功下载约束布局和约束布局求解器后:
i tired to update constraint layout and constraint layout solver but each time i try to update in sdk manager update finish successfully but when i look at sdk manager again it's unchecked . for example after downloading constraint layout and constraint layout solver successfully :
但是当我在finder中查看android sdk路径时,安装了4个版本的约束布局:1.0.0alpha7
1.0.0alpha2
1.0.1
1.0.2
but when i look at the android sdk path in the finder there is 4 version of constraint Layout installed :
1.0.0alpha7
1.0.0alpha2
1.0.1
1.0.2
我下载了gradle 2.14,并将未压缩的文件复制并替换为android studio安装的默认gradle 3.3,但...没有任何变化!
i downloaded gradle 2.14 and copy and replace unzipped file with the default gradle 3.3 installed by android studio but ... no change !
任何人都可以帮忙.我为此花了5个小时,却没有任何改变
can anyone plz help . i spend 5 hours on this and nothing changed
推荐答案
如错误消息中所示,问题出在 AppCompat
支持库,而不是ConstraintLayout库.指定特定版本或在主要版本代码后添加 *
,如下所示:
As indicated in the error message, the problem is with the AppCompat
support library, not the ConstraintLayout library. Specify a particular version or add an *
after the major version code, like so:
编译'com.android.support:appcompat-v7:25.3.1'
或
编译'com.android.support:appcompat-v7:25.*'
这篇关于gradle项目同步失败.Android Studio的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!