1、Could not resolve com.android.support.constraint:constraint-layout:1.1.2
<1>查看ConstraintLayout for Android 和Solver for ConstraintLayout是否勾选
在工具栏选择 Tools --> Android --> SDK Manager,勾选上 Support Repository中 的ConstraintLayout for Android 和Solver for ConstraintLayout
<2>查看build.gradle中的dependencies的implementation'com.android.support.constraint:constraint-layout版本是否与已安装的一致
在工具栏选择 Tools --> Android --> SDK Manager,勾选上 Support Repository中 的ConstraintLayout for Android 和Solver for ConstraintLayout
勾选show Package Details可查看已安装版本
若版本不一致,则修改build.gradle
https://blog.csdn.net/u012496940/article/details/49081151
网友评论