上传到Google Play时没有受支持的设备

时间:2016-03-21 15:44:18

标签: android google-play device

我在这个主题中看到很多问题,但我在这里找不到解决方案:Zero supported device when publishing to Google Play或此处:No supported device for my Android app in Google Play

我的应用使用权限,但我的代码中没有使用功能,因此所需的:false参数无法提供帮助。我也插入支持屏幕线,但没有任何变化。

清单:

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

我使用一个库:org.apache.http.legacy.jar

摇篮:

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')
}

我尝试删除所有权限,但结果是一样的。我试图添加兼容屏幕,但结果是一样的。

1 个答案:

答案 0 :(得分:0)

我已经解决了这个问题。 解决方案是我更改了清单文件。在应用程序标签下,我有2个uses-library标签。在行的最后我添加了

android:reqiured="false"

我已经使用了org.apache.http.legacy.jar添加了第三个uses-library标记:

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

现在我已经获得了支持8872的设备。