mplushnikov / lombok-intellij-plugin

Lombok Plugin for IntelliJ IDEA
Apache License 2.0
3.11k stars 635 forks source link

Lombok is not comatible with Android Studio 2021.1.1 Patch 2 #1115

Open khoshbin opened 2 years ago

khoshbin commented 2 years ago

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

yanpengqing commented 2 years ago

me too

thangtx86 commented 2 years ago

me too

jiyuren commented 2 years ago

me too

pravynandas commented 2 years ago

+1 me too

androidlover5842 commented 2 years ago

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

thangtx86 commented 2 years ago

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

androidlover5842 commented 2 years ago

@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

jiyuren commented 2 years ago

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?

androidlover5842 commented 2 years ago

@jiyuren 7.1.3

jiyuren commented 2 years ago

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

androidlover5842 commented 2 years ago

@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

pravynandas commented 2 years ago

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 commented 2 years ago

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

VolodymyrKorotkov commented 1 year ago

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

Thanks a lot!!!

sgpublic commented 1 year ago

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

M-Lahmer commented 1 year ago

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

Phanquan commented 1 year ago

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

kyj-kr commented 1 year ago

Thank you sgpublic.