permissions-dispatcher / PermissionsDispatcher

A declarative API to handle Android runtime permissions.
https://github.com/permissions-dispatcher/PermissionsDispatcher
Apache License 2.0
11.22k stars 1.44k forks source link

Annotation processors must be explicitly declared now #428

Closed Kevin1466 closed 6 years ago

Kevin1466 commented 6 years ago

Error:Execution failed for task ':LGMain:javaPreCompileDebug'.

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.

  • permissionsdispatcher-processor-3.1.0.jar (com.github.hotchemi.permissionsdispatcher:permissionsdispatcher-processor:3.1.0) 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.
mannodermaus commented 6 years ago

Have you checked your dependency declaration based on what the error is telling you? The permissionsdispatcher-processor library has to be added to the annotationProcessor configuration, not compile, api or implementation. Please review how the library is included in your project!