> ## Content Index
> Fetch the complete content index at: https://sgpublic.xyz/llms.txt
> Use this file to discover other available public pages before exploring further.

# Lombok 插件与 Android Studio 不兼容解决方案
- URL: https://sgpublic.xyz/p/2023/02/6aac9cb1810a4800015335f2/
- Published: 2023-02-04T14:05:47.000Z
- Updated: 2026-09-18T05:00:26.000Z
- Author: Haven Madray
- Tags: 软件开发, Java/Kotlin, #wp-post

> 参考文章：[sgpublic/lombok-plugin-repository: A repository for Lombok plugin incompatibility issues with Android Studio. (github.com)](https://github.com/sgpublic/lombok-plugin-repository?ref=sgpublic.xyz)

从 IDEA 2020.2.\* 开始，Lombok Plugin 开始内置，且无法在插件商城下载到后续版本，而 Android Studio 却在此时删除了 Lombok Plugin 的内置，从商城上下载的版本会提示与当前 Android Studio 不兼容，此文便是解决方案。

### Plugin repository（推荐）

1. 前往 `File` \-> `Settings` \-> `Plugins`，点击 `Install` 右边的设置齿轮图标。
2. 选择 `Manage Plugin repositories...`.
3. 将 [https://raw.githubusercontent.com/sgpublic/lombok-plugin-repository/repository/full](https://raw.githubusercontent.com/sgpublic/lombok-plugin-repository/repository/full?ref=sgpublic.xyz) 添加到列表。
4. 在 `Marketplace` 中搜索 `Lombok` 并直接安装即可，enjoy!

### 手动安装

1. 前往的 [release 页](https://github.com/sgpublic/lombok-plugin-action/releases?ref=sgpublic.xyz) 寻找适合你所使用的 Android Studio 的版本，下载资源中的 `lombok-xxx.xxxx.xx.zip`。
2. 前往 `File` \-> `Settings` \-> `Plugins`，点击 `Install` 右边的设置齿轮图标。
3. 选择 `Install Plugin from Disk...`.
4. 选择下载的 `zip` 文件，并点击 `OK`。
5. Lombok 安装成功，enjoy！