Skip to content

build failed after adding google cloud dependency  #2654

Description

@rahuldevanavar91

Hi
I am added google cloud dependency by

 implementation ('com.google.cloud:google-cloud-storage:1.12.0'){
        exclude group: 'com.google.guava'
    }

but my build is failed with the following error

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)
Alternatively, set android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true to continue with previous behavior. Note that this option is deprecated and will be removed in the future.

tried by disabling annotation processor

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
            }
        }
........................

I am getting following error
More than one file was found with OS independent path 'project.properties'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

dependenciespriority: p2Moderately-important priority. Fix may not be included in next release.type: questionRequest for information or clarification. Not an issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions