From 9417215f2758bbf792cb91ca5f90ba5a62924833 Mon Sep 17 00:00:00 2001 From: dodgex Date: Fri, 2 May 2014 10:53:21 +0200 Subject: Update android.html added info about @java.beans.ConstructorProperties --- website/setup/android.html | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/setup/android.html b/website/setup/android.html index 8bd99197..c7842c4a 100644 --- a/website/setup/android.html +++ b/website/setup/android.html @@ -92,6 +92,14 @@ java -jar lombok.jar publicApi
  • Now you should be able to compile your App using Lombok Annotations
  • +
    + 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.