![](/img/trans.png)
[英]Unable to merge dex error in Android Studio 3.0.1 after adding google cloud storage dependency
[英]Build failed after adding google cloud storage dependency android
我被添加了谷歌雲依賴
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'
將這部分添加為dependencies
:
compileOnly 'com.google.auto.value:auto-value:1.5.1'
annotationProcessor 'com.google.auto.value:auto-value:1.5.1'
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.