lombok-intellij-plugin icon indicating copy to clipboard operation
lombok-intellij-plugin copied to clipboard

Lombok is not comatible with Android Studio 2021.1.1 Patch 2

Open khoshbin opened this issue 2 years ago • 18 comments

I've recently updated my android studio and it says that lombok is not compatible , even when I installed it manually. My android studio version is: 2021.1.1 Patch 2 Build #AI-211.7628.21.2111.8193401 Feb 17 ,2022

khoshbin avatar Mar 19 '22 04:03 khoshbin

me too

yanpengqing avatar Mar 28 '22 04:03 yanpengqing

me too

thangtx86 avatar Apr 06 '22 13:04 thangtx86

me too

jiyuren avatar Apr 12 '22 03:04 jiyuren

+1 me too

pravynandas avatar Apr 12 '22 19:04 pravynandas

updated zip from idea 2022.1 which seems to work (place inside studio/plugins/ ) lombok.zip

androidlover5842 avatar Apr 13 '22 11:04 androidlover5842

@androidlover5842 I tried it, but it's still not working, maybe Lombok stopped support for Android Studio with the new versions.

thangtx86 avatar Apr 14 '22 02:04 thangtx86

@thangtx86 please make sure you have placed lombok inside androidStudio/plugins/lombok/ like this . Some archive manager make nested folder please make sure its extracted like shown in image below Screenshot from 2022-04-14 08-45-51

Screenshot from 2022-04-14 08-43-23 Screenshot from 2022-04-14 08-44-26

androidlover5842 avatar Apr 14 '22 03:04 androidlover5842

I have a question, if my gradle version is com.android.tools.build:gradle:3.5.4 ,it working ,if it's com.android.tools.build:gradle:4.0.0, it can't generate getter setter, and what you gradle version is?

jiyuren avatar Apr 14 '22 03:04 jiyuren

@jiyuren 7.1.3

androidlover5842 avatar Apr 14 '22 03:04 androidlover5842

your plugin not work for me 无标题 lombok-plugin-0.34.1-2022.2.zip this plugin work for me ,but just below gradle version 4.0.0, I want upgrade my gradle version ,and lombok-intellij-plugin build error

jiyuren avatar Apr 14 '22 03:04 jiyuren

@jiyuren you dont have to install it from disk you need to place it inside installed android studio folder /plugins . It should show as bundled if done correctly Screenshot from 2022-04-14 10-06-35

androidlover5842 avatar Apr 14 '22 04:04 androidlover5842

As long as the plugin structure maintainted inside zip, i.e.. lombok-xyz.zip/lib/lombok-xyz.jar it should be loaded from disk very easily. It is easier to uninstall that way. Placing inside plugins is also possible but I feel during uninstall wehave to remember to delete the directory manualky as it won’t be deleted automatically (atleast not in my case).

PS: about to publish a video with instructions on how to do this in sometime at my YT channel TECH OverSimplified. Check out.

pravynandas avatar Apr 14 '22 09:04 pravynandas

As promised, here is the video with step by step instructions on how to perform the edit and install the plugin. https://youtu.be/A14hrtUeNWU

pravynandas avatar Apr 17 '22 04:04 pravynandas

updated zip from idea 2022.1 which seems to work (place inside studio/plugins/ ) lombok.zip

Thanks a lot!!!

VolodymyrKorotkov avatar Feb 10 '23 13:02 VolodymyrKorotkov

I created a repository for this problem, which automatically exports the built-in Lombok plugin from IDEA Ultimate, hope it can help you: lombok-plugin-repository

sgpublic avatar Feb 17 '23 01:02 sgpublic

Thanks it works for me with Android Studio Electric Eel | 2022.1.1 Patch 2

M-Lahmer avatar Mar 14 '23 08:03 M-Lahmer

I created a repository for this problem, which automatically exports the built-in Lombok plugin from IDEA Ultimate, hope it can help you: lombok-plugin-repository

Thanks, your version fix the issue that android studio could not fetch methods from instance/class which the intellij version faces

Phanquan avatar Mar 22 '23 09:03 Phanquan

Thank you sgpublic.

kyj-kr avatar Jul 19 '23 03:07 kyj-kr