获取GSON的版本
import com.google.gson.internal.GsonBuildConfig; /** * @author yongjar * @date 2020/4/28 */ public class GsonTester { public static void main(String args[]) { //获取GSON的版本 String version = GsonBuildConfig.VERSION; System.out.println(version); } }