diff --git a/website/setup/android.html b/website/setup/android.html index 9aeddfc5..82f0bea1 100644 --- a/website/setup/android.html +++ b/website/setup/android.html @@ -76,6 +76,44 @@ 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. +

Gradle & Android Studio

+
+ While there might be other ways, this is how I got lombok working for Gradle and Android Studio. + +

Gradle Setup

+ +
+ NOTE: Android does not have the @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
+
+
+

Android Studio

+ While the Gradle build already works, Android Studio is not able to see the generated methods. To fix this, you have to install the Lombok Plugin for IntelliJ IDEA/Android Studio. + +