简体   繁体   中英

could not resolve plugin artifact o.fabric:io.fabric.gradle.plugin Kotlin DSL

I am getting the following error when trying to build the project. The only difference is the gradle script is in Kotlin DSL.

could not resolve plugin artifact 'io.fabric:io.fabric.gradle.plugin:1.25.4')

Below is my entire build.gradle.kts file

https://gist.github.com/nksaroj/483f3f07df8e04c72040ea4c055459d6

Or https://github.com/nksaroj/xDemo is the full project.

Use applying plugin in build block: https://docs.gradle.org/current/userguide/plugins.html#sec:applying_plugins_buildscript

For io.fabric:

buildscript {
    repositories {
        maven("https://maven.fabric.io/public")
    }

    dependencies {
        classpath("io.fabric.tools:gradle:1.25.4")
    }
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM