“播放服务:9.8.0"是否可以包括“播放服务位置:9.8.0"? [英] Does "play-services:9.8.0" include "play-services-location:9.8.0"?

查看:39
本文介绍了“播放服务:9.8.0"是否可以包括“播放服务位置:9.8.0"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在升级一个应用程序,在我的 build.gradle 文件中,我有这个:

I am upgrading an App, and in my build.gradle file, I have this:

dependencies {
    ..........
    compile 'com.google.android.gms:play-services:9.8.0'
    ..........
}

在 Urban Airship 提供的 Android SDK 设置快速入门指南中,他们将其作为示例代码提供:

In the Android SDK Setup Quickstart Guide Urban Airship provides, they offer this as a sample code:

dependencies {
    ..........
    // Recommended for location services
    compile 'com.google.android.gms:play-services-location:9.8.0'
    ..........
}

如果我使用play-services:9.8.0",我会假设它还包括play-services-location:9.8.0",因为play-services-location:9.8.0"应该是play-services:9.8.0",但我想确认一下.你知道这是否是一个正确的假设?谢谢.

If I use "play-services:9.8.0" I would assume it would also include "play-services-location:9.8.0" because "play-services-location:9.8.0" should be a subset of "play-services:9.8.0", but I wanted to confirm. Do you know if this is a correct assumption? Thank you.

推荐答案

是的,play-services 是完整的包.它们被分解以减少您的应用程序的方法数,因此您不会点击 dex限制.可以在此处找到更多信息.

Yes, play-services is the full bundle. They were broken apart to reduce the method count of your app so you don't hit the dex limit. More information can be found here.

这篇关于“播放服务:9.8.0"是否可以包括“播放服务位置:9.8.0"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆