添加依赖库你需要在你的项目中添加相应库的依赖,如果你使用Maven或Gradle,可以这样添加:使用GoogleGsonMaven(pom.xml):<dependency><groupId>com.g...