【发布时间】:2017-11-23 05:54:24
【问题描述】:
我添加了谷歌云依赖
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'
【问题讨论】:
-
你能解释一下你的 Gradle 构建是在线还是离线
-
Gradle 构建在线。
标签: android android-gradle-plugin google-cloud-platform build.gradle google-cloud-storage