Buildscript {
Repositories {
Maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
Maven {url 'https://maven.aliyun.com/repository/google'}
Jcenter ()
}
Dependencies {
The classpath 'com. Android. Tools. Build: gradle: 5.4.1'
//NOTE: Do not place your application dependencies here; They belong
//in the individual module build. Gradle files
}
}
Allprojects {
Repositories {
Maven {url 'http://maven.aliyun.com/nexus/content/groups/public/'}
Maven {url 'https://maven.aliyun.com/repository/google'}
Jcenter ()
}
}
The task the clean (type: Delete) {
The delete rootProject. BuildDir
}
In the build. The gradle dependence as
CodePudding user response:
Dear dalao have similar case or the solutionCodePudding user response:
What is your version AS model gradle: 5.4.1 '?CodePudding user response:
To some local gradle versionCodePudding user response:
Directly to create a new project, or open the existing projects, compare the gradle version, to use the 5.4.1... Really high ~CodePudding user response: