【问题标题】:How to compile only the needed Google Play Services' dependencies with Ant如何使用 Ant 仅编译所需的 Google Play 服务的依赖项
【发布时间】:2016-03-05 00:13:09
【问题描述】:

似乎使用较新版本的 Google Play 你只能用 gradle 编译 needed modules

类似的东西

dependencies {
      compile 'com.google.android.gms:play-services-base:6.5.+'
      compile 'com.google.android.gms:play-services-maps:6.5.+'
    }

如果我只想包含一些依赖项(分析和应用计费服务所需)而不使用标准 project.properties 文件进行 gradle,我怎样才能获得相同的结果?

【问题讨论】:

标签: android ant google-play-services


【解决方案1】:

这对于 Google 提供的内容是不可能的。 Split dependencies 仅支持 Gradle。

【讨论】:

  • YMMV 我猜。在过去的几个月里,事情发生了很多的变化——Instant Run 和不到 10 秒的设备推送带来了巨大的变化。还有一个 whole community 专门用于获取 Gradle 的帮助,另一个专门用于 Android Studio
  • 好的,你能告诉我我需要为谷歌计费服务编译哪些组件吗?在此列表中,我找到了除 Billing 之外的所有内容的单个组件名称。 developers.google.com/android/guides/…
  • In App Billing 完全独立于 Google Play 服务,并有一个separate implementation guide
  • 所以只有aidl就足够了我不需要钱包或其他一些google play服务组件?
  • 是的! AIDL 是唯一需要的部分。
猜你喜欢
  • 1970-01-01
  • 2018-12-23
  • 2013-11-03
  • 2015-08-30
  • 2017-09-26
  • 1970-01-01
  • 2018-11-06
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多