Play商店报告"设备不与此版本与QUOT兼容;但它通过ADB安装就好在Nexus7 [英] Play store reports "Your device isn't compatible with this version" but it installs via adb just fine on Nexus7

查看:165
本文介绍了Play商店报告"设备不与此版本与QUOT兼容;但它通过ADB安装就好在Nexus7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个程序,我发布了一个私人谷歌播放测试版。我可以安装此完全相同的APK到我的Nexus 7只是罚款

I have an app I released to a private Google Play beta. I can install this exact same APK to my Nexus 7 just fine with

ADB时安装

但通过谷歌Play商店也被标记为这个完全相同的Nexus7为

but through the Google Play store it is marked for this exact same Nexus7 as

您的设备与此版本不兼容。

这是一样的APK。我无法弄清楚如何获得为什么Play商店认为这是不兼容的任何信息。

This is the same apk. I can't figure out how to get any information on why the play store thinks it's not compatible.

我的表现是这样的:

<uses-sdk android:minSdkVersion="10" />

<uses-permission android:name="android.permission.INTERNET"></uses-permission>
<uses-permission android:name="android.permission.CAMERA"></uses-permission>
<uses-permission android:name="android.permission.RECORD_AUDIO"></uses-permission>
<uses-permission android:name="android.permission.READ_PHONE_STATE"></uses-permission>
<uses-permission android:name="android.permission.WAKE_LOCK"></uses-permission>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.GET_TASKS" />

<uses-feature android:name="android.hardware.camera" />
<uses-feature android:name="android.hardware.camera.autofocus" />

<application android:icon="@drawable/icon" android:label="@string/app_name">
    <activity android:name=".foobar"
              android:label="@string/app_name"
              android:screenOrientation="portrait">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>

    <service android:name=".fooservice" android:exported="false" android:enabled="true" android:label="@string/app_name" android:icon="@drawable/icon">
    </service>

</application>

在确定任何帮助,为什么谷歌播放认为这是不兼容?

Any help on determining why Google Play thinks it is not compatible?

推荐答案

这是完全正确的这种行为:请参考这里的官方文档的 http://developer.android.com/guide/topics/manifest/uses-feature-element.html

That's completely correct this behavior: please refer to the official documentation here http://developer.android.com/guide/topics/manifest/uses-feature-element.html.

这就是相关部分:

&LT;使用特征&GT; 元素仅仅是信息,这意味着Android系统本身不检查安装应用程序前在设备上的匹配功能的支持。然而,其他服务(如谷歌播放)或应用程序可能会检查你的应用程序的&LT;使用特征&GT; 声明作为处理的一部分,或与应用程序交互。出于这个原因,它声明的所有的功能(从下面的列表),您的应用程序使用是非常重要的。

Declared <uses-feature> elements are informational only, meaning that the Android system itself does not check for matching feature support on the device before installing an application. However, other services (such as Google Play) or applications may check your application's <uses-feature> declarations as part of handling or interacting with your application. For this reason, it's very important that you declare all of the features (from the list below) that your application uses.

所以,你能够通过ADB安装APK事实是不是证明特定设备被过滤掉或不。

So the fact you're able to install the apk through adb is not a proof for a particular device to be filtered off or not.

此外,点击这里:的http://developer.android.com/guide/topics/manifest/uses-permission-element.html

在某些情况下,您通过请求权限可能会影响您的应用程序是由谷歌过滤播放。

In some cases, the permissions that you request through can affect how your application is filtered by Google Play.

如果你请求一个硬件相关的权限 - 摄像头,例如 - 谷歌播放假定您的应用程序需要底层硬件的功能和滤镜,从设备的应用程序没有提供它

If you request a hardware-related permission — CAMERA, for example — Google Play assumes that your application requires the underlying hardware feature and filters the application from devices that do not offer it.

更新:您确认您使用的的Nexus 7 2012年,所以请参阅本官方博客帖子:的http://android-developers.blogspot.ch/2012/07/getting-your-app-ready-for-jelly-bean.html.

Update: you've confirmed you're using the Nexus 7 2012, so please refer to this official blog post: http://android-developers.blogspot.ch/2012/07/getting-your-app-ready-for-jelly-bean.html.

谷歌规定要求android.hardware.camera功能的应用程序将不可用的的Nexus 7。

Google states "apps requiring the android.hardware.camera feature will not be available on Nexus 7".

如果您需要该权限,因为你用相机在你的应用程序,你可以做到这一点编程中的 http://developer.android.com/guide/topics/media/camera.html#detect-camera

If you need that permission because you use the camera in your app, you can do it programmatically as explained in http://developer.android.com/guide/topics/media/camera.html#detect-camera.

这篇关于Play商店报告&QUOT;设备不与此版本与QUOT兼容;但它通过ADB安装就好在Nexus7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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