androidStudio3.1.3不能识别constraint-layout预览布局的问题

你需要将gradle插件版本升级为

distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
dependencies {
    classpath 'com.android.tools.build:gradle:3.1.3'
    

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}
implementation 'com.android.support.constraint:constraint-layout:1.1.2'

 

你可能感兴趣的:(这些年的android)