Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/226.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 播放控制台上支持的设备0_Android_Google Play_Android Manifest - Fatal编程技术网

Android 播放控制台上支持的设备0

Android 播放控制台上支持的设备0,android,google-play,android-manifest,Android,Google Play,Android Manifest,播放控制台显示“支持的设备0” 问题 我应该等待发布完成吗 我是否应该期望在上传后支持的设备数量会立即上升到>0 我需要摄像头功能,没有摄像头的情况下,如果它没有显示在该设备的play store上,我就可以了 我的清单文件的相关部分如下 <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" xml

播放控制台显示“支持的设备0”

问题

  • 我应该等待发布完成吗
  • 我是否应该期望在上传后支持的设备数量会立即上升到>0
  • 我需要摄像头功能,没有摄像头的情况下,如果它没有显示在该设备的play store上,我就可以了

    我的清单文件的相关部分如下

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
              xmlns:tools="http://schemas.android.com/tools"
              package="<mypackagename>">
    
    
        <!-- Without this Google Play Store will not support any device -->
        <supports-screens
            android:anyDensity="true"
            android:largeScreens="true"
            android:normalScreens="true"
            android:resizeable="true"
            android:smallScreens="true"
            android:xlargeScreens="true" />
    
        <!-- For Options menu call support -->
        <uses-permission android:name="android.permission.CALL_PHONE"/>
    
        <!-- To auto-complete the email text field in the login form with the user's emails -->
        <uses-permission android:name="android.permission.READ_PHONE_STATE"/>
        <uses-permission android:name="android.permission.INTERNET"/>
        <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
        <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    
        <!-- To auto-complete the email text field in the login form with the user's emails -->
        <uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>
        <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
        <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
        <!-- For the background service to run forever -->
        <uses-permission android:name="android.permission.WAKE_LOCK"/>
    
        <!-- For Current Location on Driver App -->
        <permission
            android:name="${manifestApplicationId}.permission.MAPS_RECEIVE"
            android:protectionLevel="signature"/>
    
        <uses-permission android:name="${manifestApplicationId}.permission.MAPS_RECEIVE"/>
        <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    
        <!-- For QR Code -->
        <uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE"/>
        <uses-permission android:name="android.permission.CAMERA"/>
        <uses-feature android:name="android.hardware.camera2"/>
        <uses-permission android:name="android.permission.GET_TASKS"/>
    
        <!-- Google Cloud Messaging -->
        <uses-permission
            android:name="${manifestApplicationId}.permission.C2D_MESSAGE"
            android:protectionLevel="signature"/>
        <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
    
        <!-- This must be set to true, since Google Maps V2.0 needs this -->
        <uses-feature
            android:glEsVersion="0x00020000"
            android:required="true"/>
    
        <application
            android:name="<mypackagename>.InitializingApplication"
            android:allowBackup="true"
            android:icon="@mipmap/ic_launcher"
            android:label="@string/app_name"
            android:largeHeap="true"
            android:supportsRtl="true"
            android:theme="@style/AppTheme.NoActionBar">
            <meta-data
                android:name="com.google.android.gms.version"
                android:value="@integer/google_play_services_version"/>
    
            <meta-data
                android:name="com.google.android.geo.API_KEY"
                android:value="${mapsKey}"/>
    
            <activity
                android:name="<mypackagename>.SplashScreen"
                android:configChanges="orientation|keyboardHidden|screenSize"
                android:label="<AppliationName>"
                android:screenOrientation="portrait"
                android:theme="@style/AppTheme.NoActionBar.Translucent"
                android:noHistory="true">
                <intent-filter>
                    <action android:name="android.intent.action.MAIN"/>
    
                    <category android:name="android.intent.category.LAUNCHER"/>
                </intent-filter>
            </activity>
            <activity
                android:name="<mypackagename>.DeviceProvision"
                android:label="@string/title_activity_device_provision"
                android:screenOrientation="portrait"/>
            <activity
                android:name="<mypackagename>.PassengerHome"
                android:label="@string/title_activity_passenger_home"
                android:screenOrientation="portrait"
                android:theme="@style/AppTheme.NoActionBar"/>
    
    
    
        </application>
    
    </manifest>
    
    
    
    编辑:

    使用
    可以为我提供0个受支持的设备

    使用
    给了我全部8900台设备

    什么胡说八道?我应该只能选择有摄像头的设备。这是什么愚蠢的环境


    另外,我不必等待发布完成,只需上传支持的设备就可以达到8900台。

    由于需要不存在的功能,您可以获得0台支持的设备。没有所谓的
    android.hardware.camera2
    这样的功能

    是提供摄像头接口的软件包。因此,这是软件包,而不是功能标签

    如果您的应用程序需要摄像头,请从以下功能中选择:

    • -如果需要后置摄像头
    • -如果前面
    • -任何cam都可以
    Src:

    我也不必等待发布完成,只需上传 使受支持的设备数量达到8900

    是的,一旦上传,play store就可以访问您的apk文件。这样它就可以运行了

    aapt dump badging <path-to-apk>
    
    aapt转储标志
    

    并获取您请求的设备功能列表。你可以自己试试。从命令行运行它。

    因为您需要一个不存在的功能,所以您得到0个受支持的设备。没有所谓的
    android.hardware.camera2
    这样的功能

    是提供摄像头接口的软件包。因此,这是软件包,而不是功能标签

    如果您的应用程序需要摄像头,请从以下功能中选择:

    • -如果需要后置摄像头
    • -如果前面
    • -任何cam都可以
    Src:

    我也不必等待发布完成,只需上传 使受支持的设备数量达到8900

    是的,一旦上传,play store就可以访问您的apk文件。这样它就可以运行了

    aapt dump badging <path-to-apk>
    
    aapt转储标志
    
    并获取您请求的设备功能列表。你可以自己试试。从命令行运行它