【问题标题】:Google App Invites: Google Play Services meta data tag?谷歌应用邀请:谷歌播放服务元数据标签?
【发布时间】:2015-08-23 07:41:26
【问题描述】:

在谷歌应用邀请指南 (https://developers.google.com/app-invites/android/guides/app) 中,我们被要求在 android 清单中放置以下元数据标签:

<meta-data
      android:name="com.google.android.gms.version"
      android:value="@integer/google_play_services_version" />

在示例的 android manifest 中,我们在任何地方都看不到这个标签:

https://github.com/googlesamples/google-services/blob/master/android/appinvites/app/src/main/AndroidManifest.xml

指南有错误吗?

【问题讨论】:

    标签: android google-app-invites


    【解决方案1】:

    有点。它已经过时了。过去,您必须将该元素添加到清单中,但使用最新版本的 Android Gradle 工具,当您具有 Google Play 服务依赖项时,Gradle 插件会自动处理此问题。

    【讨论】:

    • 谢谢 - 无论您是否添加元数据,示例应用程序都很好奇。
    • 它可能还在 Ant 用户的参考指南中,但我希望剩下的不多。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-03-27
    • 2014-08-18
    • 2014-05-23
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多