GooglePlayServicesUtil.getOpenSourceSoftware 方法不可用

GooglePlayServicesUtil.getOpenSourceSoftware method not available

我正在通过 Lynda.com.In 显示 GooglePlay 服务许可证学习 GoogleMaps 他们使用了一种名为 GooglePlayServicesUtil.getOpenSourceSoftware.I 的方法,我找不到 it.Can 有人请指出该方法也发生了什么变化?谢谢

我假设你的意思是 getOpenSourceSoftwareLicenseInfo()。如果是这样,他们就弃用了它,因为不再需要它了。他们在自己的应用程序中显示自己的软件许可证;您不再需要自己显示许可证信息。目前引用 the JavaDocs 中的内容:

This license information is displayed in Settings > Google > Open Source on any device running Google Play services. Applications do not need to display this license text, and this method will be removed in a future version of Google Play services.