太新了谷歌Android打版 [英] Too new android google play version

查看:118
本文介绍了太新了谷歌Android打版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了采用Android Studio的Andr​​oid应用程序。我有这个code清单文件中:

I have created an android application using Android Studio. I have this code in the manifest file:

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

和@整型值/ google_play_services_version是520800(自动增值时,我联系了谷歌玩库,没有硬code有)。

and the value for @integer/google_play_services_version is 520800 (value added automatically when I linked the Google play library. No hardcode there).

这是库和项目

dependencies {
  compile fileTree(include: ['*.jar'], dir: 'libs')
  compile 'com.android.support:appcompat-v7:19.+'
  compile 'com.google.android.gms:play-services:+'
}

还自动生成的,当我已经加入了谷歌从菜单中起到库。

also auto generated when I have added the Google play library from the menu.

应用程序工作正常,包子当我生成一个签名的APK,并尝试将其上传到谷歌的市场它给了我一个错误,说我想上传一个APK它使用谷歌的打版5208000,我应该使用510万版或更低。

The application works fine, bun when I generate a signed APK and try to upload it to the Google market it gives me an error saying that I am trying to upload an APK which uses google play version 5208000 and I should use version 5100000 or lower.

我已经tryed到google_play_services_version到510万,但随后的应用程序停止从一开始的工作。

I have tryed to google_play_services_version into 5100000 but then the application stops working from the beginning.

我应该如何让我的应用程序可运行和有效的市场上上传?

How should I make my app runnable and valid for uploading on the market?

推荐答案

现在的问题是该指令:

  compile 'com.google.android.gms:play-services:+'

播放业务:+ 意味着将包的最新播放服务版本。的问题是,可在开发环境的最新播放服务版本不是全世界由谷歌尚未完全公布,因此尚未在正式构建中使用。所以,你必须使用它指示版本或lower..like这一个:播放-服务:5.0.89

the play-services:+ means that it will pack the very latest play-services version. The problem is that the very latest play-services version available on the development environment is not yet fully published worldwide by Google, therefore not yet available to be used in official builds. So you have to use a version that it is indicating or lower..like this one: play-services:5.0.89.

所以这一块将工作:

  compile 'com.google.android.gms:play-services:5.0.89'

要找到可用的版本列表,看看这个文件夹在你的SDK:演员/谷歌/ m2repository / COM /谷歌/安卓/ GMS /播放服务/

To find a list of available version, take a look at this folder in your SDK: extras/google/m2repository/com/google/android/gms/play-services/

祝你好运!

这篇关于太新了谷歌Android打版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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