2016-03-21 20 views
0

Ich sehe viele Fragen in diesem Thema, aber ich konnte die Lösung hier nicht finden: Zero supported device when publishing to Google Play oder hier: No supported device for my Android app in Google Play.Kein unterstütztes Gerät beim Hochladen zu Google play

Meine App verwendet Berechtigungen und es gibt keine Verwendung-Funktion in meinem Code, so dass die erforderliche: false Parameter konnte nicht helfen. Ich füge auch die Stützbildlinien ein, aber nichts ändert sich.

Manifest:

<?xml version="1.0" encoding="utf-8"?> 
<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="com.borbas.rawedding" 
android:versionCode="3" 
android:versionName="1.2" > 

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

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



<uses-permission android:name="android.permission.INTERNET" /> 
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /> 
<!-- 
The ACCESS_COARSE/FINE_LOCATION permissions are not required to use 
    Google Maps Android API v2, but are recommended. 
--> 
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> 
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> 

<application 
    android:allowBackup="true" 
    android:icon="@drawable/ic_launcher" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" > 

    <uses-library android:name="com.google.android.maps" /> 
    <uses-library android:name="com.google.android.maps.gps" /> 
    <meta-data 
     android:name="com.google.android.maps.v2.API_KEY" 
     android:value="AIzaSyAPKFe0-mXI4rHR6iU8u9INT7inyp8E7Y0" /> 
    <activity 
     android:name="com.borbas.rawedding.MainActivity" 
     android:screenOrientation="portrait" 
     android:label="@string/app_name" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 

      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <activity 
     android:name="com.borbas.rawedding.SaveTheDate" 
     android:screenOrientation="portrait" 
     android:label="@string/title_section1" > 
    </activity> 
    <activity 
     android:name="com.borbas.rawedding.Screenplay" 
     android:screenOrientation="portrait" 
     android:label="@string/title_section4" > 
    </activity> 
    <activity 
     android:name="com.borbas.rawedding.SaveTheDate_old" 
     android:label="@string/title_section1" > 
    </activity> 
    <activity 
     android:name="com.borbas.rawedding.MapsActivity" 
     android:label="@string/title_section1" > 
    </activity> 
    <activity 
     android:name="com.borbas.rawedding.WhereIsTheLove" 
     android:label="@string/title_section2" > 
    </activity> 
    <activity 
     android:name="com.borbas.rawedding.WhereIsTheLove_old" 
     android:label="@string/title_section2" > 
    </activity> 
    <activity 
     android:name="com.borbas.rawedding.Countdown" 
     android:label="@string/title_section3" > 
    </activity> 
    <activity 
     android:name="com.borbas.rawedding.Playlist" 
     android:label="@string/title_section5" > 
    </activity> 
</application> 

Ich verwende eine Bibliothek: org.apache.http.legacy.jar

Gradle:

apply plugin: 'com.android.application' 

android { 
compileSdkVersion 23 
buildToolsVersion '23.0.2' 
defaultConfig { 
    applicationId "com.borbas.rawedding" 
    minSdkVersion 15 
    targetSdkVersion 23 
} 
signingConfigs { 
    release { 
     storeFile file("keystore.jks") 
     storePassword "xxxxxxx" 
     keyAlias "keystore" 
     keyPassword "xxxxxxx" 
    } 
} 
buildTypes { 
    release { 
     minifyEnabled false 
     proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' 
     signingConfig signingConfigs.release 
    } 
} 
productFlavors { 
} 
} 

dependencies { 
    //compile 'com.android.support:support-v4:22.1.1' 
    //compile 'com.android.support:appcompat-v7:22.1.1' 
    //compile 'cz.msebera.android:httpclient:4.4.1.1' 
    compile 'com.android.support:appcompat-v7:23.1.1' 
    compile 'com.google.android.gms:play-services:8.4.0' 
    compile files('libs/org.apache.http.legacy.jar') 
} 

Ich habe versucht, alle Berechtigungen löschen , aber das Ergebnis war das gleiche. Ich habe versucht, kompatible Bildschirme hinzuzufügen, aber das Ergebnis war das gleiche.

Antwort

0

Ich habe das Problem behoben. Die Lösung war, dass ich die Manifest-Datei geändert hatte. Unter dem Anwendungs-Tag habe ich 2 uses-library-Tags. Am Ende der Zeile habe ich

android:reqiured="false" 

hinzugefügt und ich habe einen dritten Uses-Bibliothek-Tag mit den verwendeten org.apache.http.legacy.jar hinzugefügt:

<uses-library android:name="org.apache.http.legacy.jar" android:required="false" /> 

Und jetzt hat mich habe 8872 Gerät unterstützt.

Verwandte Themen