{"id":749,"date":"2023-02-26T15:55:58","date_gmt":"2023-02-26T07:55:58","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=749"},"modified":"2023-02-26T15:56:43","modified_gmt":"2023-02-26T07:56:43","slug":"android-studio-lombok-config","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/26\/android-studio-lombok-config\/","title":{"rendered":"\u5728Android Studio\u4e2d\u914d\u7f6eLombok"},"content":{"rendered":"<h2>Lombok\u6982\u8ff0<\/h2>\n<p>Lombok\u662f\u4e00\u4e2a\u901a\u8fc7\u5728\u7a0b\u5e8f\u4e2d\u6ce8\u5165\u6807\u8bb0\uff08Annotation\uff09\uff0c\u5e2e\u52a9\u7a0b\u5e8f\u5458\u51cf\u5c11\u4ee3\u7801\u8f93\u5165\u3001\u63d0\u9ad8\u5de5\u4f5c\u6548\u7387\u7684\u5f00\u6e90\u9879\u76ee\u3002\u6709\u4e86Lombok\uff0c\u5982\u5e38\u7528\u7684Getter\/Setter\u548ctoString\u65b9\u6cd5\u7b49\uff0c\u90fd\u5229\u7528\u6807\u8bb0\u53ef\u4ee5\u907f\u514d\u8f93\u5165\u3002<\/p>\n<p><!-- more --><\/p>\n<p>Lombok\u5b98\u7f51\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/projectlombok.org\">https:\/\/projectlombok.org<\/a><br \/>\nGradle\u5b89\u88c5\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/projectlombok.org\/setup\/gradle\">https:\/\/projectlombok.org\/setup\/gradle<\/a><br \/>\nAndroid\u5f00\u53d1\u914d\u7f6e\uff1a<a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/projectlombok.org\/setup\/android\">https:\/\/projectlombok.org\/setup\/android<\/a><\/p>\n<h2>\u5b89\u88c5Lombok\u63d2\u4ef6<\/h2>\n<p><code>File<\/code> -&gt; <code>Settings<\/code> -&gt; <code>Plugins<\/code> -&gt; <code>Browse Repositories<\/code> -&gt; \u5728\u641c\u7d22\u6846\u4e2d\u8f93\u5165Lombok -&gt; \u5b89\u88c5Lombok -&gt; \u91cd\u542fAndroid Studio<\/p>\n<h2>\u4f9d\u8d56\u5f15\u5165<\/h2>\n<pre><code>dependencies {\n    compileOnly &#039;org.projectlombok:lombok:1.18.8&#039;\n    annotationProcessor &#039;org.projectlombok:lombok:1.18.8&#039;\n}<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Lombok\u6982\u8ff0 Lombok\u662f\u4e00\u4e2a\u901a\u8fc7\u5728\u7a0b\u5e8f\u4e2d\u6ce8\u5165\u6807\u8bb0\uff08Annotation\uff09\uff0c\u5e2e\u52a9\u7a0b\u5e8f\u5458\u51cf\u5c11\u4ee3\u7801\u8f93\u5165\u3001\u63d0\u9ad8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[97],"tags":[219,193],"class_list":["post-749","post","type-post","status-publish","format-standard","hentry","category-tools-skills","tag-android-studio","tag-lombok"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=749"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/749\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}