Gradle 核心插件(插件不在“org.gradle”命名空间中)

ser*_*ire 9 android gradle android-studio build.gradle android-gradle-plugin

导致此构建错误的原因是:


- 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
Run Code Online (Sandbox Code Playgroud)

build.gradle在文件中

期待 Android 构建成功

Rum*_*tel 11

就我而言,settings.gradle文件丢失了。您可以创建一个文件并将其放入项目根文件夹中。

设置.gradle

pluginManagement {
    repositories {
        gradlePluginPortal()
        google()
        mavenCentral()
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
    }
}
rootProject.name = "android-geocode"
include ':app'
Run Code Online (Sandbox Code Playgroud)


归档时间:

查看次数:

35114 次

最近记录:

1 年,9 月 前