0
나는 3.0오류 : 'app : javaPreCompileDebug'작업의 실행에 실패했습니다. 안드로이드 3.0 이상 롬복
내가 오류가
Error:Execution failed for task ':app: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.
- lombok-1.16.18.jar (org.projectlombok:lombok:1.16.18)
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.
compileOnly "org.projectlombok:lombok:1.16.18"
당신은 이것을 시도 했습니까? 'compile'org.projectlombok : lombok : 1.16.18 ' annotationProcessor "org.projectlombok : lombok : 1.16.18"' – Ibrahim
yes. 하지만 오류가 발생 - 오류 : (19, 1) 오류 : 패키지 javax.annotation 존재하지 않습니다 – ip696
다음이 작동합니다 :'compileOnly 'javax.annotation : javax.annotation-api : 1.2' compileOnly "org.projectlombok : 롬복 : 1.16.18 " annotationProcessor"org.projectlombok : 롬복 : 1.16.18 "' – Ibrahim