1、将gradle插件版本升级为
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
2、插件依赖修改
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
}
3、相关依赖修改
implementation 'com.android.support.constraint:constraint-layout:1.1.2'