skip to Main Content

After installation of newest Android Studio I tried to install Lombok plugin
(Android Studio Bumblebee 2021.1.1 | Built on January 19, 2022)

But didn’t find Lombok in Settings -> Plugins -> Marketplace

enter image description here

I found that the problem is:

Plugin ‘Lombok’ is not compatible with Android Studio build AI-211.7628.21

3

Answers


  1. Chosen as BEST ANSWER

    How to fix it:


  2. After downloading the plugin file, version number needs to be changed.

    I downloaded lombok-plugin-0.34-2020.2.zip from the releases (https://github.com/mplushnikov/lombok-intellij-plugin/releases), unzip it, went to the META-INF directory, open the jar file, changed in the xml file the line to <idea-version since-build="191.6183" until-build="IE-212.*"/> then saved the zip, installed the plugin from disk on Android Studio. Things seem to work – previous errors regarding unresolved getter functions now gone. Pretty brute force. Not sure if there will be side effects, but who knows if this plugin will only be updated after next year?

    Edit: The best solution is to get rid of Lombok from your project. It’s very easy in Android Studio from Refactor->Delombok.

    Login or Signup to reply.
  3. This issue is help for me!!!

    https://github.com/mplushnikov/lombok-intellij-plugin/issues/1028

    1. uzip lombok-plugin-0.34-2020.2.jar and do not delete the original jar file.
    2. copy plugine.xml file from META-INF and change 202.* to AI-221.6008.13.
    3. run jar uf lombok-plugin-0.34-2020.2.jar META-INF/plugin.xml to insert plugine.xml into original jar file.
    4. enter image description here
    5. choose your lombok-plugin-0.34-2020.2.jar
    6. restart Android Studio
    7. enter image description here

    good luck.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search