播放控制台上支持的设备0 [英] Supported Devices 0 on play console

查看:109
本文介绍了播放控制台上支持的设备0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Play Console显示支持的设备0。

问题


  1. 我应该等待发布完成吗?


  2. $ b

  3. 我应该预计受支持设备编号在上传后会立即上升吗?我需要相机功能,没有相机我没关系,如果它没有显示在该设备的Play商店。



    我的Manifest文件的相关部分如下。 / p>

     <?xml version =1.0encoding =utf-8?> 
    < manifest xmlns:android =http://schemas.android.com/apk/res/android
    xmlns:tools =http://schemas.android.com/tools
    package =< mypackagename>>


    <! - 如果没有这个Google Play商店,将不会支持任何设备 - >
    支持屏幕
    android:anyDensity =true
    android:largeScreens =true
    android:normalScreens =true
    android:resizeable = true
    android:smallScreens =true
    android:xlargeScreens =true/>

    <! - 对于选项菜单呼叫支持 - >
    < uses-permission android:name =android.permission.CALL_PHONE/>

    <! - 使用用户的电子邮件自动完成登录表单中的电子邮件文本字段 - >
    <使用权限android:name =android.permission.READ_PHONE_STATE/>
    < uses-permission android:name =android.permission.INTERNET/>
    < uses-permission android:name =android.permission.ACCESS_NETWORK_STATE/>
    <使用权限android:name =android.permission.ACCESS_WIFI_STATE/>

    <! - 使用用户的电子邮件自动完成登录表单中的电子邮件文本字段 - >
    <使用权限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/>
    <! - 要让后台服务永久运行 - >
    <使用权限android:name =android.permission.WAKE_LOCK/>

    <! - 适用于驱动程序应用程序的当前位置 - >
    < permission
    android:name =$ {manifestApplicationId} .permission.MAPS_RECEIVE
    android:protectionLevel =signature/>

    <使用权限android:name =$ {manifestApplicationId} .permission.MAPS_RECEIVE/>
    < uses-permission android:name =android.permission.WRITE_EXTERNAL_STORAGE/>

    <! - - QR码 - >
    < uses-permission android:name =android.permission.WRITE_INTERNAL_STORAGE/>
    <使用权限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/>

    <! - 必须设置为true,因为Google Maps V2.0需要这个 - >
    < uses-feature
    android:glEsVersion =0x00020000
    android:required =true/>

    < application
    android:name =< mypackagename> .InitializingApplication
    android:allowBackup =true
    android:icon =@ mipmap /
    android:supportsRtl =true
    android:label =@ string / app_name
    android:largeHeap =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>

    < category android:name =android.intent.category.LAUNCHER/>
    < / intent-filter>
    < / activity>
    android:name =< mypackagename> .DeviceProvision
    android:label =@ string / title_activity_device_provision
    android:screenOrientation =portrait/> ;
    android:name =< mypackagename> .PassengerHome
    android:label =@ string / title_activity_passenger_home
    android:screenOrientation =portrait
    android:theme =@ style / AppTheme.NoActionBar/>



    < / application>

    < / manifest>

    编辑:

    使用给我0个支持的设备。

    使用< uses-feature android:name =android.hardware.camera2required = false /> 给了我全部8900个设备。



    什么废话?我应该只能选择带摄像头的设备。这是什么样的一个愚蠢的设置?



    另外,我无需等待发布完成,只需上传将受支持设备的数量提升至8900即可。

    解决方案

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



    android.hardware.camera2 是提供Camera接口的包。所以,这是包不是功能的标签。



    如果您的应用程序需要相机,请选择以下功能:


    • < uses-feature android:name =android.hardware.camera/> - 如果需要返回相机

    • < uses-feature android:name =android.hardware.camera.front/> - 如果正面...

    • < uses-feature android:name =android.hardware.camera.any/> - 任何相机都可以使用



    Src: https:/ /developer.android.com/guide/topics/manifest/uses-feature-element.html


    我也没有必须等待发布才能完成,只需上传
    即可将受支持设备的数量提高到8900.


    是,一次上传的Play商店可以访问你的apk文件。所以它可以运行

      aapt转储标记<路径转换为apk> 

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


    Play Console shows "Supported Devices 0".

    Questions

    1. Should I wait for the publishing to be complete ?
    2. Should I expect that Supported Devices number will go up > 0 immediately after upload ?

    I need the camera functionality, without camera I am ok if it does not show up on play store of that device.

    Relevant portions of my Manifest file is as below.

    <?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>
    

    Edit :

    Using <uses-feature android:name="android.hardware.camera2"/> gives me 0 supported devices.

    Using <uses-feature android:name="android.hardware.camera2" required=false/> gave me full 8900 devices.

    What nonsense ? I should be able to only select devices that have a camera. What kinda silly setting is this ?

    Also I did not have to wait for publishing to complete, just uploading took the number of supported devices up to 8900.

    解决方案

    You get 0 supported devices because you require a non-existing feature. There is no such feature called android.hardware.camera2.

    android.hardware.camera2 is the package that provides the Camera interface. So, thats the package not the features' label.

    If your app requires camera, then choose from these features:

    • <uses-feature android:name="android.hardware.camera"/> - if back camera required
    • <uses-feature android:name="android.hardware.camera.front"/> - if front ...
    • <uses-feature android:name="android.hardware.camera.any"/> - any cam will do

    Src: https://developer.android.com/guide/topics/manifest/uses-feature-element.html

    Also I did not have to wait for publishing to complete, just uploading took the number of supported devices up to 8900.

    Yes, once uploaded play store can access your apk file. So it can run

    aapt dump badging <path-to-apk>
    

    and get your requested device feature list. You can try it yourself. Run it from commandline.

    这篇关于播放控制台上支持的设备0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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