Google Play - 0支持的设备问题

时间:2017-05-18 14:03:53

标签: android google-play

任何人都可以帮我解决 Google Play - 零支持设备问题。下面是我的AndroidManifest文件。

enter image description here

                                                            - >     

<uses-permission android:name="com.myapp.permission.C2D_MESSAGE"/>

<compatible-screens>
    <!-- all small size screens -->
    <screen android:screenSize="small" android:screenDensity="ldpi" />
    <screen android:screenSize="small" android:screenDensity="mdpi" />
    <screen android:screenSize="small" android:screenDensity="hdpi" />
    <screen android:screenSize="small" android:screenDensity="xhdpi" />
    <!-- all normal size screens -->
    <screen android:screenSize="normal" android:screenDensity="ldpi" />
    <screen android:screenSize="normal" android:screenDensity="mdpi" />
    <screen android:screenSize="normal" android:screenDensity="hdpi" />
    <screen android:screenSize="normal" android:screenDensity="xhdpi" />
</compatible-screens>


<application
    android:name=".MyApplication"
    android:allowBackup="false"
    android:fullBackupContent="true"
    android:hardwareAccelerated="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:largeHeap="true"
    android:theme="@style/AppTheme">

我试过以下选项

Google Play - Zero Supported Devices

Zero supported devices results on google play store

build.gradle文件结构如下,

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
        maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
        mavenCentral()

    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
    }
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
apply from: '../config/quality.gradle'

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



def versionMajor = 0
def appVersionCode
def versionMinor
def versionDate = "${buildTime()}"

def buildTime() {
    return new Date().format("YYMMdd", TimeZone.getTimeZone("UTC"))
}

def versionPropsFile = file('../config/quality/version.properties')


android {
    compileSdkVersion 23
    buildToolsVersion '25.0.0'

    /*if (versionPropsFile.canRead()) {
        def Properties versionProps = new Properties()

        versionProps.load(new FileInputStream(versionPropsFile))
        def value = 0
        def runTasks = gradle.startParameter.taskNames
        logger.info('Value Code  - ' + runTasks)
        if ('assemble' in runTasks || 'assembleRelease' in runTasks || 'aR' in runTasks) {
            value = 1;
        }
        logger.info('Value Code  - ' + value)

        appVersionCode = versionProps['VERSION_CODE'].toInteger() + value
        versionMinor = versionProps['DAY_COUNT'].toInteger()
        def buildDate = versionProps['DATE'].toString()
        if (buildDate != versionDate) {
            versionMinor = 1
        } else {
            versionMinor = versionMinor + 1;
        }

        versionProps['VERSION_CODE'] = appVersionCode.toString()
        versionProps['DAY_COUNT'] = versionMinor.toString()
        versionProps['DATE'] = versionDate.toString()
        versionProps.store(versionPropsFile.newWriter(), null)


    } else {
        throw new GradleException("Could not read version.properties!")
    }*/

    defaultConfig {
        applicationId "com.myappe"
        minSdkVersion 14
        targetSdkVersion 23
        versionCode 11
        versionName "4.0"
    }

    aaptOptions {
        useNewCruncher true
    }
    signingConfigs {
        release {
            storeFile file("../config/keystore/myapp_app.jks")
            storePassword "myappapp"
            keyAlias "myappApp"
            keyPassword "myappapp"
        }
    }
    buildTypes {
        release {
            signingConfig signingConfigs.release
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            testCoverageEnabled false
        }
        debug {

            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            testCoverageEnabled false
            multiDexEnabled true
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile project(':myapplibrary')
    compile('com.crashlytics.sdk.android:crashlytics:2.5.0@aar') {
        transitive = true;
    }
    compile 'com.github.JakeWharton:ViewPagerIndicator:2.4.1@aar'
    compile 'me.relex:circleindicator:1.2.1@aar'
    compile 'me.dm7.barcodescanner:zxing:1.8.4'
    compile 'com.journeyapps:zxing-android-embedded:3.4.0'
    compile 'com.android.support:design:23.3.0'
    compile 'com.android.support:recyclerview-v7:23.3.0'
    compile 'com.androidmapsextensions:android-maps-extensions:2.2.0'
    compile 'com.google.android.gms:play-services-ads:9.0.0'
    compile 'com.google.android.gms:play-services-auth:9.0.0'
    compile 'com.google.android.gms:play-services-gcm:9.0.0'
    compile 'com.android.support:support-v4:23.4.0'
    compile 'com.google.firebase:firebase-core:9.0.0'
}
apply plugin: 'com.google.gms.google-services'

1 个答案:

答案 0 :(得分:0)

这是谷歌的错误:(

我已经为4-5个应用验证了这一点。

错误说明:

每当新版本的应用在Android Play商店发布时,一旦上传APK,则在APK说明中始终显示支持的Android设备计数 0设备enter image description here