'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
I found that the problem is:
Plugin 'Lombok' is not compatible with Android Studio build AI-211.7628.21
Solution 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
