1

UPDATE为什么我在谷歌的空支持设备列表,Play商店中

所以要解决我开始了一个新的项目,一点一点尝试将其带到最终项目的方法的问题。下面的代码片段似乎之前,我补充说,片段是至少部分负责

<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"/> 

,列表中有9202台设备后,我加入了以上内容的列表中删除,以。

原来的问题

我已经在过去使用eclipse发表了许多应用程序。这是我第一次发布使用android studio开发的应用程序。由于我的应用程序在手机游戏商店(即通过android)中不可见,并在网上商店中显示This app is incompatible with all of your devices.,因此我开始调查以找出原因。令我非常suprize我觉得这是我的Supported devices list

enter image description here

这是疯狂的我从来没有考虑这一点。任何想法我可能做错了什么?我使用adb工具将我的发行版apk上传到我的设备上没有问题。而我的gradle这个不说

defaultConfig { 

  applicationId "com.company.android"
  
    minSdkVersion 14 

  targetSdkVersion 23
  
    versionCode 6 

  versionName "0.0.06" 

  multiDexEnabled true 

 } 
多后故障排除

,我现在甚至加入到我的清单

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

这里是我的全部gradle这个文件:

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:[email protected]') { 
     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:[email protected]') { 
     transitive = true; 
    } 
} 

而且我已经检查过apk被激活。

清单:

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

你可以发布你的清单文件吗? – danieljohngomez

+0

阅读此:http://stackoverflow.com/a/27828666/4350275 –

回答

1

没有android.hardware.camera2.autofocus,至少在the docs for <uses-feature>没有上市。有android.hardware.camera.autofocus(sans 2)。除非你看到你的<uses-feature>记录在某处,请尝试切换到没有2的那个,看看你是否有更好的运气。

+0

我的朋友,我没有钱给你 - 我希望我做了 - 所以我会为你祈祷上帝可以将你从你的身上拯救出来最黑暗的时刻。你不必相信上帝:我相信。我在这个bug上度过了几天的痛苦和艰辛。 HARDSHIP的日子。 – learner

相关问题