当前位置: 首页 > 知识库问答 >
问题:

Google Play 显示我的设备不支持我的应用

洪研
2023-03-14

如果我手动安装我自己的应用程序,它在我的设备上运行良好。以及我的Nexus 7 (2012) (Android 5.1.1)上。但当我试图从Google Play安装它时,它说我的设备不受支持。我检查了AndroidManifest.xml,通过aapt转储标记查看了apk,html" target="_blank">添加到清单文件中,但没有任何帮助。我不知道为什么Google Play认为我的应用程序不受支持。

在我的其他设备上,我的应用程序可以毫无问题地安装:三星Galaxy Ace (Android 2.3)、三星Galaxy S4 (Android 4.2.2)、三星Galaxy S3 (Android 4.3)、阿尔卡特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个答案

昝枫
2023-03-14

您正在使用<代码>

文件上说:

通过使用此功能,应用程序意味着它也使用了android.hardware.camera功能,除非使用android声明此父功能:必需="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" />
 类似资料:
  • 我刚刚在play store上发布了我的应用程序,我注意到一些三星设备没有显示我应用程序的图标,而是使用了android Studio的默认图标。你知道是什么引起的吗?我很困惑

  • 我的Spring Boot初始化遇到了麻烦。我在一个简单的Spring Boot项目中有这个结构。

  • 我正在编译我的Android项目,但我遇到了这个错误 我在其他文章中读到,试图用Java 8编译可能会导致错误,但不是我的情况,我有以下Java版本: 操作系统:Linux薄荷(我没有安装Java 8。)构建:MAVEN 有谁能帮我一下吗?

  • 在Android P中获取错误时,直接访问此部分:

  • 一个支持多设备的Android参考应用 原文链接 : a-new-reference-app-for-multi-device 译文出自 : 开发技术前线 www.devtf.cn 译者 : Mr.Simple & Sophie.Ping 现在你可以把你的app的好用之处分享给你的用户,不管他们身处何地,手上拿着何种设备。今儿我们会发布一个参考示例,展示一下如何把这种服务运用到一个在多个Andro

  • 我创建了一个Android应用程序,并将其上传到Google Play。它似乎不适用于大多数设备。我在Google Play控制台中看到以下消息: Android应用程序不支持所需的ABI-x86_64 该项目没有使用任何NDK或类似的东西。这是应该在大多数设备上运行的标准项目。我已经在Galaxy S8上单独测试了. apk,它运行良好。但是如果我想从Google Play下载它,它显示设备不兼