错误:无法解决:com.android.support.constraint:constraintlayout:1.1.3 在“项目结构”对话框中显示受影响的模块:app

ERROR: Failed to resolve: com.android.support.constraint:constraintlayout:1.1.3 Show in Project Structure dialog Affected Modules: app

提问人:Inyene Udo 提问时间:10/3/2019 最后编辑:Gabriele MariottiInyene Udo 更新时间:10/3/2019 访问量:1967

问:

由于此错误,android studio 无法对我的应用进行评分和构建synchronize

ERROR: Failed to resolve: com.android.support.constraint:constraintlayout:1.1.3
Show in Project Structure dialog
Affected Modules: app

请问我该如何解决这个问题?

Android android-gradle-plugin android-support-library android-constraintlayout

评论

0赞 elhoucine ayoub 10/3/2019
你能添加你的 gradle 文件代码源吗
0赞 Inyene Udo 10/6/2019
好的,先生,我刚刚处理了这一行代码,它同步了实现“com.android.support.constraint:constraint-layout:1.1.3”

答:

1赞 Gabriele Mariotti 10/3/2019 #1

如果您使用的是支持库,请使用

implementation 'com.android.support.constraint:constraint-layout:1.1.3'

而不是

implementation 'com.android.support.constraint:constraintlayout:1.1.3'

如果您使用的是 androidx 库,请使用。

implementation  'androidx.constraintlayout:constraintlayout:1.1.3'
0赞 Bilawal muzaffar 10/3/2019 #2

尝试包含此库

implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

和这个

repositories {
maven {
    url 'https://maven.google.com'
}
}
0赞 Andrey_yog 10/3/2019 #3

我也有类似的问题。据我了解,MSAL仅针对AndroidX发布,但不适用于支持库。 有没有计划发布支持支持库的它?