I używając Lombok na jakimś projekcie, a wraz z nowym systemem Android Studio 2.4 Aktualizuj teraz (Preview) otrzymuję ten dziwny błąd:Android Studio 2.4 + Lombok annotationProcessor zamieszanie konfiguracja
What went wrong: Execution failed for task ':core:javaPreCompileRelease'. 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. - lombok-1.16.16.jar 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.
ja już próbowałem:
annotationProcessor "org.projectlombok:lombok:1.16.16"
ale nie ma żadnego efektu.
ja również testowane:
android.defaultConfig.javaCompileOptions.annotationProcessorOptions.includeCompileClasspath = true
Ale też nie ma żadnego wpływu.
Sprawdził również stronę wsparcia, aby uzyskać dalsze informacje, ale bez powodzenia, czy ktokolwiek z was może? https://developer.android.com/studio/preview/features/index.html?utm_source=android-studio#annotationProcessor_config
Miał ten sam problem. Używałem Lombok w module biblioteki Androida i module Java. Musiałem tylko zaktualizować build.gradle w module Android. Moduł Java może pozostać jako 'compileOnly "org.projectlombok: Lombok: [wersję]"' – tir38
z Android Studio 3.0 kanarek 1 oprócz powyższych wierszy pod warunkiem/annotationProcessor musiałem dodać również 'javaCompileOptions { annotationProcessorOptions { includeCompileClasspath = prawda } } ' wewnątrz' android { defaultConfig { } } 'sekcji. – DSoldo
'annotationProcessor' powinno być' kapt' – Diolor