diff --git a/website/setup/android.html b/website/setup/android.html index 82f0bea1..2e3eb023 100644 --- a/website/setup/android.html +++ b/website/setup/android.html @@ -46,13 +46,21 @@ to the native libraries present in lombok.jar itself. Unfortunately, android does not (yet) understand the concept of a compile-time-only dependency, so you need to mess with your build files to make it work.
+ Android also does not have a complete JRE library stack; in particular, it does not have the @java.beans.ConstructorProperties annotation, therefore you have to stop lombok from generating these:
+
suppressConstructorProperties property can be set to false when using @XArgsConstructor Annotations.>= 1.14.0 you can instead a lombok.config file to the root of your project to disable ConstructorProperties project wide. Add the following line to lombok.config:lombok.anyConstructor.suppressConstructorProperties = true
The instructions listed below are excerpts from The
AndroidAnnotations project cookbook. You may wish to refer to that documentation for complete instructions; lombok is just
the equivalent to androidannotations-VERSION.jar; there is no -api aspect.
java -jar lombok.jar publicApiThen, add the
lombok-api.jar file created by running this command
@@ -76,48 +84,38 @@ java -jar lombok.jar publicApi
(which you can modify in that project's properties page) with lombok-api.jar, as produced in the procedure explained for Eclipse,
above.
>= 0.4.3dependencies-Block
+ >= 0.4.3dependencies block:provided "org.projectlombok:lombok:1.12.6"
apt in the dependencies-Block
+ apt directive) in the dependencies block:provided "org.projectlombok:lombok:1.12.6" apt "org.projectlombok:lombok:1.12.6"
@java.beans.ConstructorProperties therefor you have to use the
- suppressConstructorProperties property when using @XArgsConstructor Annotations.
- With Lombok >= 1.12.7 you can use the lombok.config file to enable this property projectwide by adding:
- lombok.anyConstructor.suppressConstructorProperties = true-
File > Settings > PluginsBrowse repositories...Lombok PluginInstall plugin