1. File → Project Structure(ctrl + alt + shift + s)

Android Studio中添加gson的jar包

或者app右键 → Open Module Settings

Android Studio中添加gson的jar包

2. Android Studio中添加gson的jar包
3.Android Studio中添加gson的jar包
4.就可以使用了!
5. 一般添加jar包基本步骤:

①百度下载jar包
②将jar包复制到libs目录下
③鼠标放在jar包上右键点击add as library
④弹出框中点击ok!!即可

(gson的jar包也可以用上面4个步骤添加)

相关文章:

  • 2021-09-26
  • 2021-05-07
  • 2021-12-06
  • 2022-01-16
  • 2021-06-12
猜你喜欢
  • 2022-01-04
  • 2021-10-05
  • 2021-05-22
  • 2022-12-23
  • 2021-11-17
  • 2021-11-19
  • 2021-07-20
相关资源
相似解决方案