Icepick,项目未构建

时间:2018-01-17 08:33:38

标签: android android-build

Android Studio 3.0.1,Gradle 4.1,Java 1.8

在我的project / build.gradle中:

buildscript {
    ext.ICEPICK = "3.2.0"

    repositories {
        google()
        jcenter()
        maven {url "https://clojars.org/repo/"}
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.1'


        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}   

在我的app / build.gradle中:

implementation "frankiesardo:icepick:$ICEPICK"
compileOnly "frankiesardo:icepick-processor:$ICEPICK"
annotationProcessor "frankiesardo:icepick-processor:$ICEPICK"

但是当我尝试构建我的项目时,我收到错误:

Error:Failed to resolve: frankiesardo:icepick-processor:3.2.0
<a href="openFile:myproject/app/build.gradle">Open File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

1 个答案:

答案 0 :(得分:0)

确保将其添加到正确的存储库部分:

[Authorize(Policy = "FirebaseAdministrators")]