我可以将Google Play服务添加到已发布的应用程序吗? [英] Can I add Google Play Services to already published app?

查看:147
本文介绍了我可以将Google Play服务添加到已发布的应用程序吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的游戏已发布并直播Google Play。但在下一次更新中,我想添加Play服务。这是可能的,因为我读过我必须先发布Play服务,然后再发布游戏。如果可能的话,你可以给我详细的说明,因为我试过一次并把事情搞砸了。 解决方案

您将不得不返回到您的源代码,添加Google Play服务并构建另一个APK。之后,再次将其重新上传到Google Play,请说出版本2.向您的项目添加Google Play服务的说明在将Google Play服务添加到您的项目



为了让Google Play服务API可用于您的应用:


打开应用程序模块目录中的build.gradle文件。
注意:Android Studio项目包含顶级build.gradle文件
和每个模块的build.gradle文件。请务必编辑您的应用程序模块
的文件。有关Gradle的更多信息,请参阅使用Gradle构建您的项目
。在依赖关系
下为最新版本的play-services添加一个新的构建规则。例如:apply插件:
'com.android.application'
...

  dependencies { 
compile'c​​om.google.android.gms:play-services:10.0.1'
}

请务必在每次更新Google Play服务
时更新此版本号。查看文档以获取更多信息。



My game is published and live on Google Play. But in the next update I want to add Play Services. Is this possible, because I read that I have to publish the Play Services first and then the game. If it's possible can you give me detailed instructions, because I tried once and screwed the things.

解决方案

You will have to go back to your source code, add the Google Play Services and build another APK. After that re-upload it to Google Play again, say version 2. The instruction to add Google Play Services to your project is stated in the Add Google Play Services to Your Project:

To make the Google Play services APIs available to your app:

Open the build.gradle file inside your application module directory. Note: Android Studio projects contain a top-level build.gradle file and a build.gradle file for each module. Be sure to edit the file for your application module. See Building Your Project with Gradle for more information about Gradle. Add a new build rule under dependencies for the latest version of play-services. For example: apply plugin: 'com.android.application' ...

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

Be sure you update this version number each time Google Play services is updated. Check the docs for more info.

这篇关于我可以将Google Play服务添加到已发布的应用程序吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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