替换com.google.android.gms:用Google-Play-Services.jar的播放服务



我正在使用Android Studio在Android上构建Google Maps应用程序当我发布第一个应用程序时,没有人能够查看Google地图,因为用户必须在设备上安装Google Play服务(我不能要求人们在每个设备中下载它),所以我想将其嵌入到我的应用。

我已经搜索了4天,到目前为止没有运气

我得到了可以将Google-play-services.jar库添加到应用程序中,因此用户无需安装Play Services

我不确定是否应该使用Google-play-services.jar或com.google.android.gms:我的Android Studio App中的播放服务。

我在其他答案中阅读了我可以将Google-play-services.jar使用到我的应用中,以便我可以准备好Google Play Services,而无需用户安装它。

在另一个说法中说com.google.android.gms:play-services是应用程序中的一个!

无论如何都有经验吗?请建议。

谢谢

google-play-services.jar仅与智能手机上的播放服务相关。您不能在APK中删除Play Service应用程序,没有任何意义。

对于想要使用您的应用程序的人们,他们需要通过Play商店下载它,或者也许他们已经在手机上有Google Music或Google Maps,因此他们安装了播放服务。

所以只需在您的gradle文件中添加Google Play服务 compile 'com.google.android.gms:play-services:(version)'

最新更新