1
我最近增加了龙目岛到我的Android项目不能正常工作,并使用@RequiredArgsConstructor和@AllArgsConstructor注释时,我发现了以下错误:龙目岛批注中的Android
error: cannot find symbol
@AllArgsConstructor
^
symbol: class ConstructorProperties
location: package java.beans
1 error
我试图遵循解决方案这个问题:AllArgsConstructor from lombok is not found by Android Studio,但是,我发现了以下错误:
error: cannot find symbol
@AllArgsConstructor(suppressConstructorProperties = true)
^
symbol: method suppressConstructorProperties()
location: @interface AllArgsConstructor
2 errors
我也尝试添加一个lombok.config
文件与行:
lombok.anyConstructor.suppressConstructorProperties = true
但它没有做任何事情。有没有什么工作可以让Lombok注释在Android上运行?