Search code examples
androidfirebaseandroid-studioapk

error while generating apk in android studio after gradle build is successfull


while generating apk getting this error i have already tried upadting the pugins also as it was recommended

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.
  - icepick-processor-3.2.0.jar (frankiesardo:icepick-processor:3.2.0)
  - auto-service-1.0-rc2.jar (com.google.auto.service:auto-service:1.0-rc2)
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.

Solution

  • You should explicitly add annotation processors in gradle. Putting the following in your gradle dependencies should fix it:

    annotationProcessor 'frankiesardo:icepick-processor:3.2.0'
    annotationProcessor 'com.google.auto.service:auto-service:1.0-rc2'