添加谷歌云存储依赖性android后构建失败

时间:2017-11-23 05:54:24

标签: android android-gradle google-cloud-platform build.gradle google-cloud-storage

我通过

添加了谷歌云依赖
implementation ('com.google.cloud:google-cloud-storage:1.12.0'){
        exclude group: 'com.google.guava'
    }

但我的构建失败并出现以下错误

Annotation processors must be explicitly declared now. The following dependencies on the compile classpath are found to contain annotation processor. Please add them to the annotationProcessor configuration.
- auto-value-1.2.jar (com.google.auto.value:auto-value:1.2)
  

我尝试通过禁用注释处理器

packagingOptions {
        exclude 'META-INF/ASL2.0'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/project.properties'
    }

.................
.........

javaCompileOptions {
            annotationProcessorOptions {
                includeCompileClasspath false
            }
        }
........................

我收到以下错误

More than one file was found with OS independent path 'project.properties'

1 个答案:

答案 0 :(得分:0)

将此部分添加为dependencies

compileOnly 'com.google.auto.value:auto-value:1.5.1'
annotationProcessor 'com.google.auto.value:auto-value:1.5.1'
相关问题