导致此构建错误的原因:
- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'com.android.application:com.android.application.gradle.plugin:7.0.3')
Searched in the following repositories:
Gradle Central Plugin Repository
Google
在build.gradle文件中
期待一个成功的android构建
在我的案例中,settings.gradle
文件丢失。您可以创建一个文件并将其放置到项目根文件夹中。
设置。渐变:
pluginManagement {
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
rootProject.name = "android-geocode"
include ':app'
检查distributionurl的gradle包装器属性版本,它应该与build.gradle的插件版本相同