Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot find Lombok plugin in Android Studio 2021.1.1 (build of 2022)

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

like image 442
ModX Avatar asked Nov 19 '25 11:11

ModX


2 Answers

How to fix it:

  • go to https://plugins.jetbrains.com/plugin/6317-lombok/versions
  • download .zip with the latest version (0.34.1-2019.1)
  • unpack it to ~/android-studio/plugins (use your path to Android Studio)
  • restart IDE
like image 121
ModX Avatar answered Nov 21 '25 08:11

ModX


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.

like image 40
LeoXJ Avatar answered Nov 21 '25 09:11

LeoXJ



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!