错误:未能解析:com.android.support.constraint:constraintlayout:1.1.3在项目结构对话框中显示受影响的模块:应用

错误:未能解析:com.android.support.constraint:constraintlayout:1.1.3在项目结构对话框中显示受影响的模块:应用,android,android-studio,android-gradle-plugin,android-support-library,android-constraintlayout,Android,Android Studio,Android Gradle Plugin,Android Support Library,Android Constraintlayout,由于此错误,android studio无法同步分级和构建我的应用程序 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:constr

由于此错误,android studio无法
同步
分级和构建我的应用程序

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发布,而不是为支持库发布。
是否有发布it支持库的计划?

您是否可以添加您的gradle文件代码源OK先生,我刚刚编写了这行代码,它同步了实现'com.android.Support.constraint:constraint layout:1.1.3'