多个APK,谷歌电视和Android手机/平板电脑应用程序的单一上市的Play商店 [英] Multiple apks, single listing of app for Google TV and Android Phone/Tablet on Play Store
问题描述
我有一个Android手机/平板APK这是目前在Play商店,并在其清单文件具有以下设置:
I have an Android phone/tablet apk which is currently in Play store and has these settings in its manifest file:
package="com.company.xyz"
android:versionCode="0803010008"
android:versionName="01.00.08" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="8" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-library
android:name="com.adobe.flashplayer"
android:required="true" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="false"
android:xlargeScreens="true" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="true" />
我已经上传其他APK为GoogleTV的具有相同的包名com.company.xyz为previous APK,并在其清单文件中的以下设置:
I had uploaded another apk for GoogleTV which has the same package name com.company.xyz as the previous apk and has the following settings in its manifest file:
package="com.company.xyz"
android:versionCode="1203010001"
android:versionName="01.00.01" >
<uses-sdk
android:minSdkVersion="12"
android:targetSdkVersion="12" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="com.google.android.tv"
android:required="true" />
<supports-screens
android:largeScreens="true"/>
<uses-configuration android:reqFiveWayNav="true" />
在谷歌电视的apk一直没有露面上GTV箱Play商店,所以我更新其清单下面,并与一切保持不变的设置
The Google TV apk never showed up on Play Store on GTV boxes, so I updated its manifest with the settings below and with everything else remaining the same
package="com.company.xyz"
android:versionCode="1203010002"
android:versionName="01.00.02" >
<supports-screens
android:largeScreens="true"
android:normalScreens="false"
android:smallScreens="false"
android:xlargeScreens="false" />
在这一点上,我不能保存,因为Play商店错误的应用程序错误:新的APK版本低于previous APK版本低,即使GoogleTV的APK具有更高版本code比在手机/平板电脑的版本。有没有人有一个解决方案?
At this point, I am unable to save the app because of the Play Store error "Error: New APK version is lower than previous APK version" even though the GoogleTV apk has a higher version code than the Phone/Tablet version. Does anyone have a solution for this?
谢谢!
推荐答案
这些解决方案是由谷歌电视DevRel小组建议。
These solutions were suggested by the Google TV DevRel team.
我不小心下库增加了一个armeabi文件夹。这使得谷歌TV Play商店认为应用程序使用NDK,并过滤出的应用程序。
I had accidentally added an armeabi folder under libs. This made Google TV play store think that the app uses NDK and the app was filtered out.
另外一个变化我不得不做出了更换
Another change I had to make was to replace
<supports-screens
android:largeScreens="true"
android:normalScreens="false"
android:smallScreens="false"
android:xlargeScreens="false" />
与
<supports-screens android:largeScreens="true"/>
和创建APK的更新版本。设置所有支架屏幕属性正在作出很大的设备拿起错的apk。
and create a newer version of the apk. Setting all the supports screens attributes was making large devices pick up the wrong apk.
在此之后,我上传并激活1203010003,然后停用旧版本1203010001和1203010002.I然后能成功地挽救APK不会遇到错误:新的APK版本低于previous APK版本低
Following this, I uploaded and activated 1203010003 and then deactivated the old versions 1203010001 and 1203010002.I was then able to successfully save the apk without encountering the "Error: New APK version is lower than previous APK version"
希望这会帮助别人!
这篇关于多个APK,谷歌电视和Android手机/平板电脑应用程序的单一上市的Play商店的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!