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
I found that the problem is:
Plugin ‘Lombok’ is not compatible with Android Studio build AI-211.7628.21
3
Answers
How to fix it:
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.
This issue is help for me!!!
https://github.com/mplushnikov/lombok-intellij-plugin/issues/1028
lombok-plugin-0.34-2020.2.jar
and do not delete the original jar file.plugine.xml
file from META-INF and change202.*
toAI-221.6008.13
.jar uf lombok-plugin-0.34-2020.2.jar META-INF/plugin.xml
to insertplugine.xml
into original jar file.lombok-plugin-0.34-2020.2.jar
good luck.