要求在应用清单中提及Google Play服务版本

时间:2021-03-06 07:04:06

Can anybody tell me why we need to mention the Google Play service's version in an app's manifest? What does Android do with this value?

任何人都可以告诉我为什么我们需要在应用程序的清单中提及Google Play服务的版本? Android如何处理这个价值?

4 个解决方案

#1


3  

Google continuously upgrading it's play service.But as old applications are there, so to support applications which are using old version of play service we need to spacify on what version of play service our application based.

谷歌不断升级它的播放服务。但是由于旧的应用程序存在,所以为了支持使用旧版播放服务的应用程序,我们需要根据我们的应用程序基于什么版本的播放服务进行空间化。

Update:

更新:

we include google-play-service lib and the version is based on this lib not on google play service installed in our mobile. so play-service-lib jar will always be inside in our application with it's version code.So google will manage google play service request according to play-service-lib version.

我们包括google-play-service lib,该版本基于此lib而不是我们手机中安装的google play服务。因此,play-service-lib jar将始终在我们的应用程序中使用它的版本代码。所以google将根据play-service-lib版本管理google play服务请求。

we provide version of google-play-service lib in our manifest

我们在清单中提供了google-play-service lib的版本

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

and "@integer/google_play_services_version" refers to version of Lib,which is using in our application.

和“@ integer / google_play_services_version”是指我们的应用程序中使用的Lib版本。

This is just like, We request Facebook installed application or we use Facebook Sdk with our application..Both are different things.

这就像,我们要求Facebook安装应用程序或我们使用Facebook Sdk与我们的应用程序..两个是不同的东西。

Hope it is clear..

希望很清楚..

#2


2  

Using the version , Google Play Store keeps a track of the number of updations done to the application and .apk file uploaded to the Developer's Console . This is applicable after the application has been Published in the Google Play Store.

使用该版本,Google Play商店会跟踪上传到开发人员控制台的应用程序和.apk文件所做的更新次数。这在应用程序发布到Google Play商店后适用。

If any modification is done to the application and you want to upload the .apk file to the Developer's Console to distribute it to the user , you have to change the version . Else you would not be able to upload the .apk file.

如果对应用程序进行了任何修改,并且您希望将.apk文件上载到Developer's Console以将其分发给用户,则必须更改版本。否则,您将无法上传.apk文件。

Also upgrading the version notifies the users about any changes/modifications/upgradations done the published application in the Google Play Store.

此外,升级版本会通知用户有关Google Play商店中已发布应用程序所做的任何更改/修改/升级。

#3


2  

This is because latest google play services requires a version name, which is to be mentioned using <meta-data .. /> inside AndroidManifest.xml.

这是因为最新的Google Play服务需要一个版本名称,使用AndroidManifest.xml中的 来提及。

Update:

更新:

Sometimes you have the need to set up some app-wide configuration information in an Android app or need to create a class that can be used in multiple projects with a generic way of setting configuration values. This is particularly useful for things like API keys that will probably be different across apps but should be accessible in the same way. There are several ways to do it, but the one I’ve come to prefer is adding a meta-data tag to the AndroidManifest.xml file. If you are familiar with Android Admobs , New Relic Application Tools, Chartboost, InMobi, Millennial, Google Play Store and most of them are using meta-data for this.

有时您需要在Android应用程序中设置一些应用程序范围的配置信息,或者需要使用通用的设置配置值的方法创建可在多个项目中使用的类。这对于像API密钥这样的东西特别有用,它们可能在不同的应用程序中有所不同,但应该以相同的方式访问。有几种方法可以做到,但我更喜欢的是在AndroidManifest.xml文件中添加元数据标记。如果您熟悉Android Admobs,New Relic Application Tools,Chartboost,InMobi,Millennial,Google Play商店,他们中的大多数都使用元数据。

#4


0  

it is helpful to know that which version is currently in use and to decide the behavior according for the google play services, we need to mention google play lib version at manifest which can be done with meta data tags of xml in android manifest.

了解当前正在使用哪个版本以及根据Google Play服务决定行为是有帮助的,我们需要在清单中提及google play lib版本,这可以使用android清单中的xml的元数据标记来完成。

please visit http://developer.android.com/google/play-services/index.html

请访问http://developer.android.com/google/play-services/index.html

it is basically of Google Play Store keeps a track of the number of updations done to the application and beside this

它基本上是Google Play商店跟踪应用程序所做的更新次数

1)Google Technology

1)谷歌技术

2) For Standard Authorization

2)用于标准授权

3) Tracking versions and api uses and to track and know Automatic Updates

3)跟踪版本和api使用,并跟踪和了解自动更新

please visit in support of the discussion

请访问以支持讨论

http://arstechnica.com/gadgets/2013/09/balky-carriers-and-slow-oems-step-aside-google-is-defragging-android/

http://arstechnica.com/gadgets/2013/09/balky-carriers-and-slow-oems-step-aside-google-is-defragging-android/

http://google.about.com/od/p/a/What-Is-Google-Play.htm

http://google.about.com/od/p/a/What-Is-Google-Play.htm

#1


3  

Google continuously upgrading it's play service.But as old applications are there, so to support applications which are using old version of play service we need to spacify on what version of play service our application based.

谷歌不断升级它的播放服务。但是由于旧的应用程序存在,所以为了支持使用旧版播放服务的应用程序,我们需要根据我们的应用程序基于什么版本的播放服务进行空间化。

Update:

更新:

we include google-play-service lib and the version is based on this lib not on google play service installed in our mobile. so play-service-lib jar will always be inside in our application with it's version code.So google will manage google play service request according to play-service-lib version.

我们包括google-play-service lib,该版本基于此lib而不是我们手机中安装的google play服务。因此,play-service-lib jar将始终在我们的应用程序中使用它的版本代码。所以google将根据play-service-lib版本管理google play服务请求。

we provide version of google-play-service lib in our manifest

我们在清单中提供了google-play-service lib的版本

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

and "@integer/google_play_services_version" refers to version of Lib,which is using in our application.

和“@ integer / google_play_services_version”是指我们的应用程序中使用的Lib版本。

This is just like, We request Facebook installed application or we use Facebook Sdk with our application..Both are different things.

这就像,我们要求Facebook安装应用程序或我们使用Facebook Sdk与我们的应用程序..两个是不同的东西。

Hope it is clear..

希望很清楚..

#2


2  

Using the version , Google Play Store keeps a track of the number of updations done to the application and .apk file uploaded to the Developer's Console . This is applicable after the application has been Published in the Google Play Store.

使用该版本,Google Play商店会跟踪上传到开发人员控制台的应用程序和.apk文件所做的更新次数。这在应用程序发布到Google Play商店后适用。

If any modification is done to the application and you want to upload the .apk file to the Developer's Console to distribute it to the user , you have to change the version . Else you would not be able to upload the .apk file.

如果对应用程序进行了任何修改,并且您希望将.apk文件上载到Developer's Console以将其分发给用户,则必须更改版本。否则,您将无法上传.apk文件。

Also upgrading the version notifies the users about any changes/modifications/upgradations done the published application in the Google Play Store.

此外,升级版本会通知用户有关Google Play商店中已发布应用程序所做的任何更改/修改/升级。

#3


2  

This is because latest google play services requires a version name, which is to be mentioned using <meta-data .. /> inside AndroidManifest.xml.

这是因为最新的Google Play服务需要一个版本名称,使用AndroidManifest.xml中的 来提及。

Update:

更新:

Sometimes you have the need to set up some app-wide configuration information in an Android app or need to create a class that can be used in multiple projects with a generic way of setting configuration values. This is particularly useful for things like API keys that will probably be different across apps but should be accessible in the same way. There are several ways to do it, but the one I’ve come to prefer is adding a meta-data tag to the AndroidManifest.xml file. If you are familiar with Android Admobs , New Relic Application Tools, Chartboost, InMobi, Millennial, Google Play Store and most of them are using meta-data for this.

有时您需要在Android应用程序中设置一些应用程序范围的配置信息,或者需要使用通用的设置配置值的方法创建可在多个项目中使用的类。这对于像API密钥这样的东西特别有用,它们可能在不同的应用程序中有所不同,但应该以相同的方式访问。有几种方法可以做到,但我更喜欢的是在AndroidManifest.xml文件中添加元数据标记。如果您熟悉Android Admobs,New Relic Application Tools,Chartboost,InMobi,Millennial,Google Play商店,他们中的大多数都使用元数据。

#4


0  

it is helpful to know that which version is currently in use and to decide the behavior according for the google play services, we need to mention google play lib version at manifest which can be done with meta data tags of xml in android manifest.

了解当前正在使用哪个版本以及根据Google Play服务决定行为是有帮助的,我们需要在清单中提及google play lib版本,这可以使用android清单中的xml的元数据标记来完成。

please visit http://developer.android.com/google/play-services/index.html

请访问http://developer.android.com/google/play-services/index.html

it is basically of Google Play Store keeps a track of the number of updations done to the application and beside this

它基本上是Google Play商店跟踪应用程序所做的更新次数

1)Google Technology

1)谷歌技术

2) For Standard Authorization

2)用于标准授权

3) Tracking versions and api uses and to track and know Automatic Updates

3)跟踪版本和api使用,并跟踪和了解自动更新

please visit in support of the discussion

请访问以支持讨论

http://arstechnica.com/gadgets/2013/09/balky-carriers-and-slow-oems-step-aside-google-is-defragging-android/

http://arstechnica.com/gadgets/2013/09/balky-carriers-and-slow-oems-step-aside-google-is-defragging-android/

http://google.about.com/od/p/a/What-Is-Google-Play.htm

http://google.about.com/od/p/a/What-Is-Google-Play.htm