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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With