找到你要的答案

Q:replacing com.google.android.gms:play-services with google-play-services.jar

Q:更换组件。谷歌。Android。克:与google-play-services.jar播放服务

I am building a google maps app on android using android studio When I released the first version of my app, no one was able to view the google maps as google play services must be installed on the devices by users ( I cant ask people to download that in each device) so I want to embed it into my app.

I have been searching for 4 days and no luck so far

I got that google-play-services.jar library can be added to the app and by that no need for the user to install play services

I am not sure if I should use google-play-services.jar or com.google.android.gms:play-services in my android studio app.

I read in other answers that I can use google-play-services.jar into my app so I can get Google Play Services ready without the need for user to install it.

in another said that com.google.android.gms:play-services is a must in the app!

Anyway has experience in this? Please advice.

Thanks

I am building a google maps app on android using android studio When I released the first version of my app, no one was able to view the google maps as google play services must be installed on the devices by users ( I cant ask people to download that in each device) so I want to embed it into my app.

我一直在寻找4天,至今没有运气

我有google-play-services.jar库可以被添加到应用程序,无需用户安装服务

我不知道我应该用google-play-services.jar或COM。谷歌。Android。克:在我的Android应用程序播放服务工作室。

我在等答案,我可以读到我的应用程序google-play-services.jar这样我就可以得到谷歌Play服务准备不需要用户安装它。

另一个说,com。谷歌。Android。GMS:服务是一个必须在应用程序!

Anyway has experience in this? Please advice.

谢谢

answer1: 回答1:

google-play-services.jar will only interract with installed play services on the smartphone. You can't emmbed the play service application in your apk, there's nos sense.

For peoples who want to use your application, they need to download it by the play store or maybe they already have google music or google maps on their phone, so they have play services installed.

So just add google play services in your gradle file compile 'com.google.android.gms:play-services:(version)'

google-play-services.jar只会打交道的安装服务的智能手机。你不能在你的apk emmbed发挥服务应用,有NOS的感觉。

对于那些想使用你的应用程序的人来说,他们需要在游戏商店下载,或者他们的手机上有谷歌音乐或者谷歌地图,所以他们安装了游戏服务。

So just add google play services in your gradle file compile 'com.google.android.gms:play-services:(version)'

android  google-play-services  google-maps-api-2