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

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

由于这个错误,android 工作室无法 synchronize 评分和构建我的应用程序

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

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

如果您正在使用支持库,请使用

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'

尝试包含这个库

implementation 'androidx.constraintlayout:constraintlayout:1.1.3'

还有这个

repositories {
maven {
    url 'https://maven.google.com'
}
}

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