2016-04-22 6 views
0

Ich habe eine App auf Google Play veröffentlicht, die eine Mindest-API-Stufe von 17 (Android 4.2) hat. Ich habe ein Testtelefon mit Android 4.4.2. Die App wird derzeit nur als Beta veröffentlicht. Wenn ich versuche, es herunterzuladen, sagt es, dass es nicht kompatibel ist.Google Play-Kompatibilitätsproblem

Hat jemand irgendwelche Ideen, was könnte das verursachen?

apply plugin: 'com.android.application' 

android { 
compileSdkVersion 23 
buildToolsVersion "23.0.2" 
useLibrary 'org.apache.http.legacy' 

defaultConfig { 
    applicationId "com.delaneybiometrics.delaneymobile" 
    minSdkVersion 17 
    targetSdkVersion 23 
    versionCode 9 
    versionName "0.9" 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 
    } 
} 
} 

dependencies { 
compile fileTree(dir: 'libs', include: ['*.jar']) 
testCompile 'junit:junit:4.12' 
compile 'com.android.support:appcompat-v7:23.3.0' 
compile 'com.android.support:design:23.3.0' 
compile 'com.google.android.gms:play-services:8.4.0' 
compile 'org.apache.httpcomponents:httpcore:4.4.3' 
compile 'org.apache.httpcomponents:httpclient:4.5' 

}

Hier ist das Manifest ...

<?xml version="1.0" encoding="utf-8"?> 

<!-- 
    The ACCESS_COARSE/FINE_LOCATION permissions are not required to use 
    Google Maps Android API v2, but you must specify either coarse or fine 
    location permissions for the 'MyLocation' functionality. 
--> 
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> 
<uses-permission android:name="android.permission.CAMERA" /> 
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> 
<uses-permission android:name="android.permission.INTERNET" /> 
<!--<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES"/>--> 

<uses-feature 
    android:name="android.hardware.camera" 
    android:required="false" /> 
<uses-feature 
    android:name="android.hardware.camera.front" 
    android:required="false" /> 
<uses-feature android:name="android.hardware.camera.autofocus" /> 

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

<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:screenOrientation="portrait" 
     android:theme="@style/AppTheme.NoActionBar" 
     android:windowSoftInputMode="adjustResize"> 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

     </intent-filter> 
    </activity> 
    <!-- 
     The API key for Google Maps-based APIs is defined as a string resource. 
     (See the file "res/values/google_maps_api.xml"). 
     Note that the API key is linked to the encryption key used to sign the APK. 
     You need a different API key for each encryption key, including the release key that is used to 
     sign the APK for publishing. 
     You can define the keys for the debug and release targets in src/debug/ and src/release/. 
    --> 
    <meta-data 
     android:name="com.google.android.geo.API_KEY" 
     android:value="@string/google_maps_key" /> 

    <activity 
     android:name=".PunchActivity" 
     android:screenOrientation="portrait" 
     android:theme="@style/AppTheme.NoActionBar" /> 
    <activity 
     android:name=".OnSiteActivity" 
     android:screenOrientation="portrait" 
     android:theme="@style/AppTheme.NoActionBar" /> 
    <activity 
     android:name=".RegisterActivity" 
     android:screenOrientation="portrait" 
     android:theme="@style/AppTheme.NoActionBar" /> 
    <activity 
     android:name=".TourActivity" 
     android:screenOrientation="portrait" 
     android:theme="@style/AppTheme.NoActionBar" /> 
    <activity android:name=".SplashActivity"> 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
</application> 

+2

Bitte fügen Sie der Frage das Manifest und Build.gradle hinzu –

+0

Hat Ihr Gerät eine Kamera? Wenn ja, ist der Autofokus verfügbar? Einschließlich der 'android.hardware.camera.autofocus' Funktion * deklariert * implizit die 'android.hardware.camera'-Funktion, die höchstwahrscheinlich Ihr' android: required = "false" der 'android.hardware.camera' Funktion außer Kraft setzt. – cygery

Antwort

1

Um dies zu beheben, entfernen Sie den <uses-feature android:name="android.hardware.camera.autofocus" /> Tag aus Ihrem Manifest. Aber keine Sorge, as the docs say below, wird Ihre App arbeitet noch richtig

http://developer.android.com/reference/android/hardware/Camera.AutoFocusCallback.html

Geräte, die einen „fake“ Rückruf nicht Autofokus-Unterstützung erhalten zu dieser Schnittstelle. Wenn Ihre Anwendung Autofokus benötigt und auf Geräten ohne Autofokus nicht installiert werden soll, müssen Sie angeben, dass Ihre App die Funktion android.hardware.camera.autofocus im Manifestelement verwendet.

+0

Ich habe das -Tag aus dem Manifest entfernt. Es ist immer noch nicht kompatibel. Das Update wurde durchgeführt, weil es gerade auf einem meiner anderen Geräte aktualisiert wurde. –

+0

was ist das problematische Gerät Modell und Hersteller – petey

+0

Es ist ein Vodafone Smart 4 mit Android 4.4.2. Ich habe mehrere andere Testgeräte und dies ist das einzige, das behauptet, inkompatibel zu sein. –

Verwandte Themen