Google Play 说我的设备不支持我的应用

Posted

技术标签:

【中文标题】Google Play 说我的设备不支持我的应用【英文标题】:Google Play says that my app is not supported on my device 【发布时间】:2017-01-12 04:07:01 【问题描述】:

如果我手动安装我自己的应用程序,它可以在我的设备上正常运行。在我的 Nexus 7 (2012) (android 5.1.1) 上。但是当我尝试从 Google Play 安装它时,它说我的设备不受支持。我检查了 AndroidManifest.xml,通过 aapt dump badging 查看了 apk,将 添加到清单文件中,但没有任何帮助。我不知道为什么 Google Play 认为我的应用不受支持。

在我的其他设备上可以毫无问题地安装我的应用程序:Samsung Galaxy Ace (Android 2.3)、Samsung Galaxy S4 (Android 4.2.2)、Samsung Galaxy S3 (Android 4.3)、Alcatel Pixi 4 (Android 6)。有什么建议吗?

这是我的应用程序:https://play.google.com/store/apps/details?id=ru.proghouse.robocam

这是我的清单文件:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="ru.proghouse.robocam">

    <uses-permission android:name="android.permission.BLUETOOTH" />
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.CAMERA" />

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

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">
        <activity android:name=".MainActivity"
            android:label="@string/app_name"
            android:launchMode="singleInstance"
            android:configChanges="orientation|keyboardHidden">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <service
            android:name=".HttpServer"
            android:enabled="true"
            android:exported="true" >
        </service>
        <activity
            android:name=".GlobalSettingsActivity"
            android:label="@string/title_activity_global_settings" >
        </activity>
        <activity
            android:name=".ServerSettingsActivity"
            android:label="@string/title_activity_server_settings"
            android:windowSoftInputMode="stateHidden" >
        </activity>
        <activity
            android:name=".RobotSettingsListActivity"
            android:label="@string/title_activity_robot_settings_list"
            android:windowSoftInputMode="">
        </activity>
        <activity
            android:name=".EV3SettingsActivity"
            android:label="@string/title_activity_ev3_settings"
            android:windowSoftInputMode="stateHidden" >
        </activity>
    </application>

</manifest>

这就是 aapt dump badging 对我的 apk 的评价:

package: name='ru.proghouse.robocam' versionCode='4' versionName='1.0.a5' platformBuildVersionName=''
sdkVersion:'9'
targetSdkVersion:'24'
uses-permission: name='android.permission.BLUETOOTH'
uses-permission: name='android.permission.BLUETOOTH_ADMIN'
uses-permission: name='android.permission.INTERNET'
uses-permission: name='android.permission.ACCESS_WIFI_STATE'
uses-permission: name='android.permission.CAMERA'
uses-permission: name='android.permission.ACCESS_NETWORK_STATE'
application-label-af:'RoboCam'
application-label-am:'RoboCam'
application-label-ar:'RoboCam'
application-label-az:'RoboCam'
application-label-az-AZ:'RoboCam'
application-label-be:'RoboCam'
application-label-be-BY:'RoboCam'
application-label-bg:'RoboCam'
application-label-bn:'RoboCam'
application-label-bn-BD:'RoboCam'
application-label-bs:'RoboCam'
application-label-bs-BA:'RoboCam'
application-label-ca:'RoboCam'
application-label-cs:'RoboCam'
application-label-da:'RoboCam'
application-label-de:'RoboCam'
application-label-el:'RoboCam'
application-label-en-AU:'RoboCam'
application-label-en-GB:'RoboCam'
application-label-en-IN:'RoboCam'
application-label-es:'RoboCam'
application-label-es-US:'RoboCam'
application-label-et:'RoboCam'
application-label-et-EE:'RoboCam'
application-label-eu:'RoboCam'
application-label-eu-ES:'RoboCam'
application-label-fa:'RoboCam'
application-label-fi:'RoboCam'
application-label-fr:'RoboCam'
application-label-fr-CA:'RoboCam'
application-label-gl:'RoboCam'
application-label-gl-ES:'RoboCam'
application-label-gu:'RoboCam'
application-label-gu-IN:'RoboCam'
application-label-hi:'RoboCam'
application-label-hr:'RoboCam'
application-label-hu:'RoboCam'
application-label-hy:'RoboCam'
application-label-hy-AM:'RoboCam'
application-label-in:'RoboCam'
application-label-is:'RoboCam'
application-label-is-IS:'RoboCam'
application-label-it:'RoboCam'
application-label-iw:'RoboCam'
application-label-ja:'RoboCam'
application-label-ka:'RoboCam'
application-label-ka-GE:'RoboCam'
application-label-kk:'RoboCam'
application-label-kk-KZ:'RoboCam'
application-label-km:'RoboCam'
application-label-km-KH:'RoboCam'
application-label-kn:'RoboCam'
application-label-kn-IN:'RoboCam'
application-label-ko:'RoboCam'
application-label-ky:'RoboCam'
application-label-ky-KG:'RoboCam'
application-label-lo:'RoboCam'
application-label-lo-LA:'RoboCam'
application-label-lt:'RoboCam'
application-label-lv:'RoboCam'
application-label-mk:'RoboCam'
application-label-mk-MK:'RoboCam'
application-label-ml:'RoboCam'
application-label-ml-IN:'RoboCam'
application-label-mn:'RoboCam'
application-label-mn-MN:'RoboCam'
application-label-mr:'RoboCam'
application-label-mr-IN:'RoboCam'
application-label-ms:'RoboCam'
application-label-ms-MY:'RoboCam'
application-label-my:'RoboCam'
application-label-my-MM:'RoboCam'
application-label-nb:'RoboCam'
application-label-ne:'RoboCam'
application-label-ne-NP:'RoboCam'
application-label-nl:'RoboCam'
application-label-pa:'RoboCam'
application-label-pa-IN:'RoboCam'
application-label-pl:'RoboCam'
application-label-pt:'RoboCam'
application-label-pt-BR:'RoboCam'
application-label-pt-PT:'RoboCam'
application-label-ro:'RoboCam'
application-label-ru:'RoboCam'
application-label-si:'RoboCam'
application-label-si-LK:'RoboCam'
application-label-sk:'RoboCam'
application-label-sl:'RoboCam'
application-label-sq:'RoboCam'
application-label-sq-AL:'RoboCam'
application-label-sr:'RoboCam'
application-label-sr-Latn:'RoboCam'
application-label-sv:'RoboCam'
application-label-sw:'RoboCam'
application-label-ta:'RoboCam'
application-label-ta-IN:'RoboCam'
application-label-te:'RoboCam'
application-label-te-IN:'RoboCam'
application-label-th:'RoboCam'
application-label-tl:'RoboCam'
application-label-tr:'RoboCam'
application-label-uk:'RoboCam'
application-label-ur:'RoboCam'
application-label-ur-PK:'RoboCam'
application-label-uz:'RoboCam'
application-label-uz-UZ:'RoboCam'
application-label-vi:'RoboCam'
application-label-zh-CN:'RoboCam'
application-label-zh-HK:'RoboCam'
application-label-zh-TW:'RoboCam'
application-label-zu:'RoboCam'
application-icon-120:'res/mipmap-mdpi-v4/ic_launcher.png'
application-icon-160:'res/mipmap-mdpi-v4/ic_launcher.png'
application-icon-213:'res/mipmap-hdpi-v4/ic_launcher.png'
application-icon-240:'res/mipmap-hdpi-v4/ic_launcher.png'
application-icon-320:'res/mipmap-xhdpi-v4/ic_launcher.png'
application-icon-480:'res/mipmap-xxhdpi-v4/ic_launcher.png'
application-icon-640:'res/mipmap-xxxhdpi-v4/ic_launcher.png'
application: label='RoboCam' icon='res/mipmap-mdpi-v4/ic_launcher.png'
launchable-activity: name='ru.proghouse.robocam.MainActivity'  label='RoboCam' i
con=''
feature-group: label=''
  uses-feature-not-required: name='android.hardware.camera.autofocus'
  uses-feature: name='android.hardware.bluetooth'
  uses-implied-feature: name='android.hardware.bluetooth' reason='requested andr
oid.permission.BLUETOOTH permission, requested android.permission.BLUETOOTH_ADMI
N permission, and targetSdkVersion > 4'
  uses-feature: name='android.hardware.camera'
  uses-implied-feature: name='android.hardware.camera' reason='requested android
.permission.CAMERA permission'
  uses-feature: name='android.hardware.faketouch'
  uses-implied-feature: name='android.hardware.faketouch' reason='default featur
e for all apps'
  uses-feature: name='android.hardware.wifi'
  uses-implied-feature: name='android.hardware.wifi' reason='requested android.p
ermission.ACCESS_WIFI_STATE permission'
main
other-activities
other-services
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: 'af' 'am' 'ar' 'az' 'az-AZ' 'be' 'be-BY' 'bg' 'bn' 'bn-BD' 'bs' 'bs-BA'
 'ca' 'cs' 'da' 'de' 'el' 'en-AU' 'en-GB' 'en-IN' 'es' 'es-US' 'et' 'et-EE' 'eu'
 'eu-ES' 'fa' 'fi' 'fr' 'fr-CA' 'gl' 'gl-ES' 'gu' 'gu-IN' 'hi' 'hr' 'hu' 'hy' 'h
y-AM' 'in' 'is' 'is-IS' 'it' 'iw' 'ja' 'ka' 'ka-GE' 'kk' 'kk-KZ' 'km' 'km-KH' 'k
n' 'kn-IN' 'ko' 'ky' 'ky-KG' 'lo' 'lo-LA' 'lt' 'lv' 'mk' 'mk-MK' 'ml' 'ml-IN' 'm
n' 'mn-MN' 'mr' 'mr-IN' 'ms' 'ms-MY' 'my' 'my-MM' 'nb' 'ne' 'ne-NP' 'nl' 'pa' 'p
a-IN' 'pl' 'pt' 'pt-BR' 'pt-PT' 'ro' 'ru' 'si' 'si-LK' 'sk' 'sl' 'sq' 'sq-AL' 's
r' 'sr-Latn' 'sv' 'sw' 'ta' 'ta-IN' 'te' 'te-IN' 'th' 'tl' 'tr' 'uk' 'ur' 'ur-PK
' 'uz' 'uz-UZ' 'vi' 'zh-CN' 'zh-HK' 'zh-TW' 'zu'
densities: '120' '160' '213' '240' '320' '480' '640'
native-code: 'arm64-v8a' 'armeabi-v7a' 'mips' 'x86' 'x86_64'

【问题讨论】:

先从您的设备上卸载您的应用,然后重试。 我已经做过很多次了。它没有帮助。 【参考方案1】:

您正在使用&lt;uses-feature android:name="android.hardware.camera.autofocus" android:required="false" /&gt;

documentation 说:

通过使用此功能,应用意味着它也使用 android.hardware.camera 功能,除非此父功能声明为 android:required="false"。

因为您没有在清单中声明父功能 android.hardware.camera。该应用假定需要android.hardware.camera。 根据文档,此功能仅指后置摄像头:

该应用使用设备的后置摄像头。只有前置摄像头的设备不会列出此功能,因此如果您的应用可以与任何摄像头通信,请使用 android.hardware.camera.any 功能,无论摄像头朝向哪个方向。

由于 Nexus 7 (2012) 没有后置摄像头,因此无法从 Google Play 安装您的应用。您必须将android.hardware.camera.any 添加到您的清单中,以表明您的应用程序也可以使用前置或后置摄像头。

<uses-feature android:name="android.hardware.camera.any" android:required="true" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />

【讨论】:

它对我的 Nexus 7 没有帮助。但我在支持的设备列表中发现了一件奇怪的事情:支持 Nexus 7 石斑鱼,但不支持 Nexus 7 罗非鱼 (yadi.sk/i/vxZ11CbMuobAR)。不同的是,罗非鱼有3g,石斑鱼没有。 还有一个问题:如果我使用 android.hardware.camera,是否必须添加 。有吗? 不,你不需要添加那个。

以上是关于Google Play 说我的设备不支持我的应用的主要内容,如果未能解决你的问题,请参考以下文章

如何让我的 google play 应用支持更多设备?

Google Play 控制台:许多设备不支持 Android TV 应用

设备支持警告:Google play 2019

如何修复 google play console 不支持的设备(OpenGL ES 和框架版本)

Android 应用不支持 Google Play 设备目录中的热门设备

将应用程序上传到 google play 时包名称不匹配