Android Studio 4.1没有GsonFormat插件的解决
作者:sunshine199110 时间:2021-12-14 18:12:44
今天把Android Studio 升级到4.1版本,发现GsonFormat没有了,网上有的解决办法从https://plugins.jetbrains.com/plugin/7654-gsonformat下载jar包,本地安装插件,试了报Plugin “GsonFormat” is incompatible (supported only in IntelliJ IDEA)。
最后,把jar删除,从marketplace安装了GsonFormatPlus。
会有两个问题
1.显示@lombok.NoArgsConstructor、@lombok.Data
解决Setting去掉use lombok选中:
2.数据显示对象(Integer、Double、Boolean),不是数据类型(int、double、boolean)
去掉use wrapper class的勾选, 就可以生成数据类型。(感谢@ruansu2012)
来源:https://blog.csdn.net/u010219889/article/details/109337771
标签:Android,Studio,GsonFormat插件
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Unity3D更改默认的脚本编辑器
2021-06-05 14:58:53
![](https://img.aspxhome.com/file/2023/5/68625_0s.png)
浅谈Spring6中的反射机制
2022-06-04 13:23:33
![](https://img.aspxhome.com/file/2023/1/110631_0s.png)
Spring MVC数据绑定方式
2023-03-18 03:06:55
Android Flutter实现仿闲鱼动画效果
2023-07-15 15:32:47
![](https://img.aspxhome.com/file/2023/3/87323_0s.jpg)
c#序列化详解示例
2022-09-12 02:39:00
android实现图片闪烁动画效果的两种实现方式(实用性高)
2022-06-29 14:18:32
java8 stream自定义分组求和并排序的实现
2022-09-12 04:08:26
![](https://img.aspxhome.com/file/2023/5/79175_0s.png)
Mybatis Interceptor 拦截器的实现
2022-11-02 05:05:44
详解c# 多态
2021-12-07 07:12:40
![](https://img.aspxhome.com/file/2023/3/79113_0s.png)
Spingboot JPA CriteriaBuilder 如何获取指定字段
2022-07-20 15:40:22
IDEA类存在但找不到的解决办法
2021-10-22 07:24:43
![](https://img.aspxhome.com/file/2023/0/71190_0s.png)
深入Unix时间戳与C# DateTime时间类型互换的详解
2023-06-04 21:48:11
Spring Boot + Mybatis多数据源和动态数据源配置方法
2023-02-16 17:15:31
Java的split方法使用详解
2021-10-03 06:09:57
![](https://img.aspxhome.com/file/2023/3/64523_0s.png)
浅谈关于spring profile的误解
2021-07-25 05:48:43
c#如何使用 XML 文档功能
2023-12-25 03:44:33
c#的params参数使用示例
2021-10-07 04:53:39
记一次线程爆满导致服务器崩溃的问题排查及解决
2022-09-23 06:43:09
![](https://img.aspxhome.com/file/2023/4/125554_0s.png)
Mybatis实现SQL存储流程详解
2022-09-11 05:17:05
ThreadLocal数据存储结构原理解析
2023-04-27 19:54:55
![](https://img.aspxhome.com/file/2023/4/128234_0s.png)