Skip to content
This repository was archived by the owner on Sep 25, 2023. It is now read-only.
This repository was archived by the owner on Sep 25, 2023. It is now read-only.

Annotation processors must be explicitly declared now #48

@rasmusohrstig

Description

@rasmusohrstig

I'm trying to import the library in Android studio using Gradle like so:

dependencies {
...
implementation "io.fabric8:mockwebserver:0.1.7"
}

When building the code I get 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.

  • builder-annotations-0.13.1.jar (io.sundr:builder-annotations:0.13.1)
  • resourcecify-annotations-0.13.1.jar (io.sundr:resourcecify-annotations:0.13.1)
    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.
    See https://developer.android.com/r/tools/annotation-processor-error-message.html for more details.

I have tried this:

dependencies {
...
implementation "io.fabric8:mockwebserver:0.1.7"
annotationProcessor "io.sundr:builder-annotations:0.13.1"
annotationProcessor "io.sundr:resourcecify-annotations:0.13.1"
}

and this:

dependencies {
...
implementation "io.fabric8:mockwebserver:0.1.7"
annotationProcessor "io.sundr:builder-annotations:0.13.1"
}

but it results in duplicate imports of various classes.

The deprecated workaround android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true no longer works now.

What is the best way to import this library in Android Studio?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions