为什么我在谷歌Play商店中的空支持的设备列表 [英] Why is my list of supported devices empty on google playstore

查看:247
本文介绍了为什么我在谷歌Play商店中的空支持的设备列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新

所以要解决我用了一点尝试启动一个新的项目,很少把它带到最终项目的方法的问题。下面的代码片段似乎是至少部分负责

 <使用许可权的android:NAME =android.permission.CAMERA/>
    <使用许可权的android:NAME =android.permission.WRITE_EXTERNAL_STORAG​​E/>
    <使用许可权的android:NAME =android.permission.RECORD_AUDIO/>
    <使用许可权的android:NAME =android.permission.ACCESS_COARSE_LOCATION/>    <使用特征的android:NAME =android.hardware.camera/>
    <使用特征的android:NAME =android.hardware.camera2.autofocus/>

在我添加了片段,名单有9202设备后,我添加列表中删除的片段 0

原题

我已经发表在过去的许多应用程序使用eclipse。这是我第一次发布是采用了android工作室开发的应用程序。由于我的应用程序是不可见的移动Play商店(即通过Android)和说这个应用程式与您所有的设备不兼容。在网上商店,我开始调查到找出原因。令我十分suprize我觉得这是我的支持的设备列表

在这里输入的形象描述

这是疯狂的我从来没有占到这一点。任何想法我可能做错了什么?我没有问题,使用亚行工具上传我的版本的apk到我的设备。而我没有的gradle说

  defaultConfig {
的applicationIDcom.company.android
    14的minSdkVersion
targetSdkVersion 23
    版本code 6
的versionName0.0.06
multiDexEnabled真
}

多后故障排除,我现在连加入到我的清单

 <采用-SDK
        安卓的minSdkVersion =14
        机器人:targetSdkVersion =23/>

下面是我的gradle满档:

  buildscript {
    库{
        行家{URLhttps://maven.fabric.io/public'}
    }    依赖{
        类路径'io.fabric.tools:gradle:1.+
    }
}
应用插件:'com.android.application
应用插件:'io.fabric
应用插件:'com.google.gms.google的服务。库{
    行家{URLhttps://maven.fabric.io/public'}
}
安卓{
    compileSdkVersion 23
    buildToolsVersion23.0.1    defaultConfig {
        的applicationIDcom.mycompany.android
        14的minSdkVersion
        targetSdkVersion 23
        版本code 6
        的versionName0.0.06
        multiDexEnabled真
    }
    buildTypes {
        发布 {
            minifyEnabled假
            proguardFiles getDefaultProguardFile('proguard的-Android的optimize.txt'),'proguard-rules.pro
            zipAlignEnabled真
        }
    }
    dexOptions {
        真正的增量
        javaMaxHeapSize4G
        preDexLibraries = FALSE
    }}依赖{
    编译文件树(导演:'库',包括:['的* .jar'])
    编制项目(路径::云,配置:Android的终端)
    编译('com.twitter.sdk.android:twitter:1.9.0@aar'){
        传递= TRUE;
    }
    编译com.android.support:multidex:1.0.0
    编译com.android.support:design:23.0.1
    编译com.android.support:recyclerview-v7:23.0.1
    编译com.android.support:cardview-v7:23.0.1
    编译com.google.android.gms:发挥服务 - 分析:8.1.0
    编译com.squareup.okhttp:okhttp:2.5.0
    编译com.squareup.picasso:毕加索:2.5.2
    编译com.path:Android的优先jobqueue:1.1.2
    编译com.google.android.gms:播放服务-GCM:8.1.0
    编译com.google.android.gms:播放服务,appindexing:8.1.0
    编译com.google.android.gms:播放服务地点:8.1.0
    编译com.google.android.gms:播放服务的广告:8.1.0
    编译('com.crashlytics.sdk.android:crashlytics:2.5.2@aar'){
        传递= TRUE;
    }
}

和我已经检查了APK被激活。

清单:

 <?XML版本=1.0编码=UTF-8&GT?;
<清单
    包=com.company.android
    的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android>    <支持屏
        机器人:anyDensity =真
        机器人:largeScreens =真
        机器人:normalScreens =真
        机器人:smallScreens =真/>    <使用许可权的android:NAME =android.permission.AUTHENTICATE_ACCOUNTS/>
    <使用许可权的android:NAME =android.permission.INTERNET对/>
    <使用许可权的android:NAME =android.permission.ACCESS_NETWORK_STATE/>
    <使用许可权的android:NAME =android.permission.WRITE_SYNC_SETTINGS/>
    <! - 为通知 - >
    <使用许可权的android:NAME =android.permission.WAKE_LOCK/>
    <使用许可权的android:NAME =com.google.android.c2dm.permission.RECEIVE/>
    <使用许可权的android:NAME =com.company.android.permission.C2D_MESSAGE/>
    <! - 相机的额外的权限 - >
    <使用许可权的android:NAME =android.permission.CAMERA/>
    <使用许可权的android:NAME =android.permission.WRITE_EXTERNAL_STORAG​​E/>
    <使用许可权的android:NAME =android.permission.RECORD_AUDIO/>
    <使用许可权的android:NAME =android.permission.ACCESS_COARSE_LOCATION/>    <使用特征的android:NAME =android.hardware.camera/>
    <使用特征的android:NAME =android.hardware.camera2.autofocus/>    <应用
        机器人:应用程序名称=
        机器人:allowBackup =真
        机器人:图标=@的mipmap / ic_launcher
        机器人:标签=@字符串/ APP_NAME
        机器人:主题=@风格/ AppTheme>        <! - 活动 - >
        <活动
            机器人:名字=。MainActivity
            android:configChanges=\"keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode|screenSize|smallestScreenSize\"
            机器人:标签=@字符串/ APP_NAME
            机器人:launchMode =singleTop
            机器人:windowSoftInputMode =adjustPan>
            &所述;意图滤光器>
                <作用机器人:名字=android.intent.action.MAIN/>                <类机器人:名字=android.intent.category.LAUNCHER/>
            &所述; /意图滤光器>
            &所述;意图滤光器>
                <作用机器人:名字=android.intent.action.SEARCH/>
            &所述; /意图滤光器>
            <! - 深层链接搜索引擎 - >
            <意向过滤器的android:标签=@字符串/ APP_NAME>
                <作用机器人:名字=android.intent.action.VIEW/>                <类机器人:名字=android.intent.category.DEFAULT/>
                <类机器人:名字=android.intent.category.BROWSABLE/>
                <! - 接受以http://www.company.com开头的URI - >
                <数据
                    机器人:主机=www.company.com
                    机器人:计划=HTTP/>
            &所述; /意图滤光器>            <意向过滤器的android:标签=@字符串/ APP_NAME>
                <作用机器人:名字=android.intent.action.VIEW/>                <类机器人:名字=android.intent.category.DEFAULT/>
                <类机器人:名字=android.intent.category.BROWSABLE/>
                <! - 接受以http://www.company.com/开头的URI - >
                <数据
                    机器人:主机=www.company.com
                    机器人:路径preFIX =/
                    机器人:计划=HTTP/>
            &所述; /意图滤光器>            <意向过滤器的android:标签=@字符串/ APP_NAME>
                <作用机器人:名字=android.intent.action.VIEW/>                <类机器人:名字=android.intent.category.DEFAULT/>
                <类机器人:名字=android.intent.category.BROWSABLE/>
                <! - 接受以https://www.company.com开头的URI - >
                <数据
                    机器人:主机=www.company.com
                    机器人:计划=HTTPS/>
            &所述; /意图滤光器>            <意向过滤器的android:标签=@字符串/ APP_NAME>
                <作用机器人:名字=android.intent.action.VIEW/>                <类机器人:名字=android.intent.category.DEFAULT/>
                <类机器人:名字=android.intent.category.BROWSABLE/>
                <! - 接受以http://www.company.com/开头的URI - >
                <数据
                    机器人:主机=www.company.com
                    机器人:路径preFIX =/
                    机器人:计划=HTTPS/>
            &所述; /意图滤光器>            &所述;元数据
                机器人:名字=android.app.searchable
                机器人:资源=@ XML /搜索/>
        < /活性GT;
        <活动
            机器人:CameraActivityNAME =
            机器人:configChanges =方向|屏幕尺寸
            机器人:标签=@字符串/ title_activity_camera/>
        <活动
            机器人:SettingsActivityNAME =
            机器人:标签=@字符串/ title_activity_settings/>        <活动
            机器人:名字=。DogsWebPageActivity
            机器人:标签=@字符串/ title_activity_Dogs_web_page
            机器人:主题=@风格/ AppTheme>
            <! - <元数据 - >
            < - 机器人:名字=android.support.PARENT_ACTIVITY - >
            < - 机器人:值=。MainActivity/> - >
        < /活性GT;
        <! - 接收器 - >
        <! - 云的消息 - >
        <接收
            机器人:名字=com.google.android.gms.gcm.GcmReceiver
            机器人:出口=真
            机器人:权限=com.google.android.c2dm.permission.SEND>
            &所述;意图滤光器>
                <作用机器人:名字=com.google.android.c2dm.intent.RECEIVE/>
                <类机器人:名字=com.company.android/>
            &所述; /意图滤光器>
            &所述;意图滤光器>
                <作用机器人:名字=com.google.android.c2dm.intent.REGISTRATION/>                <类机器人:名字=com.company.android/>
            &所述; /意图滤光器>
        < /接收器>        <! - 为他们的适配器片段 - >
        <! - 服务 - >
        <! - 云的消息 - >
        <服务
            机器人:名字=com.company.android.data.service.companyGcmListenerService
            机器人:出口=假>
            &所述;意图滤光器>
                <作用机器人:名字=com.google.android.c2dm.intent.RECEIVE/>
            &所述; /意图滤光器>
        < /服务>
        <服务
            机器人:名字=。data.service.companyInstanceIDListenerService
            机器人:出口=假>
            &所述;意图滤光器>
                <作用机器人:名字=com.google.android.gms.iid.InstanceID/>
            &所述; /意图滤光器>
        < /服务>
        <服务
            机器人:名字=。data.service.RegistrationIntentService
            机器人:出口=假>
        < /服务>        <! - 在DuckSyncAdapter服务 - >
        <服务
            机器人:名字=。data.contentprovider.sync.DuckSyncService
            机器人:出口=真正的>
            &所述;意图滤光器>
                <作用机器人:名字=android.content.SyncAdapter/>
            &所述; /意图滤光器>            &所述;元数据
                机器人:名字=android.content.SyncAdapter
                机器人:资源=@ XML / syncadapter/>
        < /服务>        <! - syncadapter的伪认证服务 - >
        <服务机器人:名字=。data.contentprovider.sync.DuckAuthenticatorService>
            &所述;意图滤光器>
                <作用机器人:名字=android.accounts.AccountAuthenticator/>
            &所述; /意图滤光器>            &所述;元数据
                机器人:名字=android.accounts.AccountAuthenticator
                机器人:资源=@ XML /认证/>
        < /服务>        < - 为适配器:数据缓存/供应商 - >
        <服务
            机器人:名字=。data.service.DogsService
            机器人:出口=FALSE/>
        <服务
            机器人:名字=。data.service.RemoteDataService
            机器人:出口=FALSE/>
        <服务
            机器人:名字=。data.service.VideoSearchService
            机器人:出口=FALSE/>
        <! - 提供商 - >
        <! - 鸭标签内容提供商 - >
        <供应商
            机器人:名字=。data.contentprovider.VideoProvider
            机器人:当局=@字符串/ content_authority
            机器人:出口=假
            机器人:可同步=真/>
        <供应商
            机器人:名字=。data.contentprovider.companySearchRecentSuggestionsProvider
            android:authorities=\"com.company.android.data.contentprovider.companySearchRecentSuggestionsProvider\"/>        &所述;元数据
            机器人:名字=com.google.android.gms.version
            机器人:值=@整数/ GOOGLE_PLAY_SERVICES_VERSION/>
        &所述;元数据
            机器人:名字=io.fabric.ApiKey
            机器人:值=somestring/>    < /用途>< /清单>


解决方案

有没有 android.hardware.camera2.autofocus ,至少在的的文档的<使用特征> 。有 android.hardware.camera.autofocus (SAN的 2 )。除非你已经看到你的<使用特征> 某处记载,尝试切换到一个没有 2 看如果你有更好的运气。

UPDATE

So to solve the problem I took the approach of starting a new project and little by little try to bring it to the final project. The following snippet seems to be at least partly responsible

<uses-permission android:name="android.permission.CAMERA"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.RECORD_AUDIO"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

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

before I added that snippet, the list had 9202 devices, after I add the snippet the list dropped to 0.

ORIGINAL QUESTION

I have published many apps in the past using eclipse. This is the first time I am publishing an app that is developed using android studio. Since my app is not visible in the mobile play store (i.e. through android) and says This app is incompatible with all of your devices. in the web store, I started investigating to find out why. To my great suprize I find this as my Supported devices list

This is crazy as I have never accounted this before. Any ideas what I may be doing wrong? I have no problem uploading my release apk to my device using the adb tool. And my gradle does say

defaultConfig {

        applicationId "com.company.android"
    
    minSdkVersion 14

        targetSdkVersion 23
    
    versionCode 6

        versionName "0.0.06"

        multiDexEnabled true

    }

after much troubleshooting, I have now even added to my manifest

<uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="23"/>

Here is my full gradle file:

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
    }
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply plugin: 'com.google.gms.google-services'

repositories {
    maven { url 'https://maven.fabric.io/public' }
}


android {
    compileSdkVersion 23
    buildToolsVersion "23.0.1"

    defaultConfig {
        applicationId "com.mycompany.android"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 6
        versionName "0.0.06"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            zipAlignEnabled true
        }
    }
    dexOptions {
        incremental true
        javaMaxHeapSize "4g"
        preDexLibraries = false
    }

}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile project(path: ':cloud', configuration: 'android-endpoints')
    compile('com.twitter.sdk.android:twitter:1.9.0@aar') {
        transitive = true;
    }
    compile 'com.android.support:multidex:1.0.0'
    compile 'com.android.support:design:23.0.1'
    compile 'com.android.support:recyclerview-v7:23.0.1'
    compile 'com.android.support:cardview-v7:23.0.1'
    compile 'com.google.android.gms:play-services-analytics:8.1.0'
    compile 'com.squareup.okhttp:okhttp:2.5.0'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.path:android-priority-jobqueue:1.1.2'
    compile 'com.google.android.gms:play-services-gcm:8.1.0'
    compile 'com.google.android.gms:play-services-appindexing:8.1.0'
    compile 'com.google.android.gms:play-services-location:8.1.0'
    compile 'com.google.android.gms:play-services-ads:8.1.0'
    compile('com.crashlytics.sdk.android:crashlytics:2.5.2@aar') {
        transitive = true;
    }
}

And I already checked that the apk is activated.

Manifest:

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

    <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="true"/>

    <uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.WRITE_SYNC_SETTINGS"/>
    <!-- for notifications -->
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
    <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
    <uses-permission android:name="com.company.android.permission.C2D_MESSAGE"/>
    <!-- Additional permission for camera -->
    <uses-permission android:name="android.permission.CAMERA"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.RECORD_AUDIO"/>
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>

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

    <application
        android:name=".Application"
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:theme="@style/AppTheme">

        <!-- ACTIVITIES -->
        <activity
            android:name=".MainActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenSize|screenLayout|uiMode|screenSize|smallestScreenSize"
            android:label="@string/app_name"
            android:launchMode="singleTop"
            android:windowSoftInputMode="adjustPan">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>

                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
            <intent-filter>
                <action android:name="android.intent.action.SEARCH"/>
            </intent-filter>
            <!-- deep linking for search engine -->
            <intent-filter android:label="@string/app_name">
                <action android:name="android.intent.action.VIEW"/>

                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <!-- Accepts URIs that begin with "http://www.company.com" -->
                <data
                    android:host="www.company.com"
                    android:scheme="http"/>
            </intent-filter>

            <intent-filter android:label="@string/app_name">
                <action android:name="android.intent.action.VIEW"/>

                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <!-- Accepts URIs that begin with "http://www.company.com/" -->
                <data
                    android:host="www.company.com"
                    android:pathPrefix="/"
                    android:scheme="http"/>
            </intent-filter>

            <intent-filter android:label="@string/app_name">
                <action android:name="android.intent.action.VIEW"/>

                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <!-- Accepts URIs that begin with "https://www.company.com" -->
                <data
                    android:host="www.company.com"
                    android:scheme="https"/>
            </intent-filter>

            <intent-filter android:label="@string/app_name">
                <action android:name="android.intent.action.VIEW"/>

                <category android:name="android.intent.category.DEFAULT"/>
                <category android:name="android.intent.category.BROWSABLE"/>
                <!-- Accepts URIs that begin with "http://www.company.com/" -->
                <data
                    android:host="www.company.com"
                    android:pathPrefix="/"
                    android:scheme="https"/>
            </intent-filter>

            <meta-data
                android:name="android.app.searchable"
                android:resource="@xml/searchable"/>
        </activity>
        <activity
            android:name=".CameraActivity"
            android:configChanges="orientation|screenSize"
            android:label="@string/title_activity_camera"/>
        <activity
            android:name=".SettingsActivity"
            android:label="@string/title_activity_settings"/>

        <activity
            android:name=".DogsWebPageActivity"
            android:label="@string/title_activity_Dogs_web_page"
            android:theme="@style/AppTheme">
            <!--<meta-data-->
            <!--android:name="android.support.PARENT_ACTIVITY"-->
            <!--android:value=".MainActivity"/>-->
        </activity>
        <!-- RECEIVERS -->
        <!-- for cloud messages -->
        <receiver
            android:name="com.google.android.gms.gcm.GcmReceiver"
            android:exported="true"
            android:permission="com.google.android.c2dm.permission.SEND">
            <intent-filter>
                <action android:name="com.google.android.c2dm.intent.RECEIVE"/>
                <category android:name="com.company.android"/>
            </intent-filter>
            <intent-filter>
                <action android:name="com.google.android.c2dm.intent.REGISTRATION"/>

                <category android:name="com.company.android"/>
            </intent-filter>
        </receiver>

        <!-- fragments for their adapters -->


        <!-- SERVICES -->
        <!-- for cloud messages -->
        <service
            android:name="com.company.android.data.service.companyGcmListenerService"
            android:exported="false">
            <intent-filter>
                <action android:name="com.google.android.c2dm.intent.RECEIVE"/>
            </intent-filter>
        </service>
        <service
            android:name=".data.service.companyInstanceIDListenerService"
            android:exported="false">
            <intent-filter>
                <action android:name="com.google.android.gms.iid.InstanceID"/>
            </intent-filter>
        </service>
        <service
            android:name=".data.service.RegistrationIntentService"
            android:exported="false">
        </service>

        <!-- The DuckSyncAdapter service -->
        <service
            android:name=".data.contentprovider.sync.DuckSyncService"
            android:exported="true">
            <intent-filter>
                <action android:name="android.content.SyncAdapter"/>
            </intent-filter>

            <meta-data
                android:name="android.content.SyncAdapter"
                android:resource="@xml/syncadapter"/>
        </service>

        <!-- syncadapter's dummy authenticator service -->
        <service android:name=".data.contentprovider.sync.DuckAuthenticatorService">
            <intent-filter>
                <action android:name="android.accounts.AccountAuthenticator"/>
            </intent-filter>

            <meta-data
                android:name="android.accounts.AccountAuthenticator"
                android:resource="@xml/authenticator"/>
        </service>

        <!-- for adapters: data cache/providers -->
        <service
            android:name=".data.service.DogsService"
            android:exported="false"/>
        <service
            android:name=".data.service.RemoteDataService"
            android:exported="false"/>
        <service
            android:name=".data.service.VideoSearchService"
            android:exported="false"/>
        <!-- PROVIDERS -->
        <!-- Duck tab content provider -->
        <provider
            android:name=".data.contentprovider.VideoProvider"
            android:authorities="@string/content_authority"
            android:exported="false"
            android:syncable="true"/>
        <provider
            android:name=".data.contentprovider.companySearchRecentSuggestionsProvider"
            android:authorities="com.company.android.data.contentprovider.companySearchRecentSuggestionsProvider"/>

        <meta-data
            android:name="com.google.android.gms.version"
            android:value="@integer/google_play_services_version"/>
        <meta-data
            android:name="io.fabric.ApiKey"
            android:value="somestring"/>

    </application>

</manifest>

解决方案

There is no android.hardware.camera2.autofocus, at least not listed in the docs for <uses-feature>. There is android.hardware.camera.autofocus (sans the 2). Unless you have seen your <uses-feature> documented somewhere, try switching to the one without the 2 and see if you have better luck.

这篇关于为什么我在谷歌Play商店中的空支持的设备列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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