Android Studio中的Gson库 [英] Gson library in Android Studio
本文介绍了Android Studio中的Gson库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以给我逐步指南,将Gson库添加到Android项目吗?
Can someone give me step by step guide to add the Gson library to an Android project?
我尝试了JSON
内置库,但是现在似乎有点乏味.我看到了几个基于Gson的示例,这似乎很简单.
I tried the JSON
built-in library but that seems to be a bit tedious right now. I saw a couple of examples based on Gson, and that seems really easy.
推荐答案
Add following dependency or download Gson jar file
implementation 'com.google.code.gson:gson:2.8.6'
请遵循 github存储库以获得文档及更多内容.
Follow github repo for documentation and more.
这篇关于Android Studio中的Gson库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文