Google play does not mark any compatible device for my apk

2

I have 5 updates of my app modifying the AndroidManifest.xml to be if I get that the tab is different to compatible devices: 0 and I'm not successful appsheet .

If you could help me please.

AndroidManifest.xml

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

 < manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.grupoenergeticos.gn">

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

    <uses-feature
        android:name="android.hardware.camera2"
        android:required="true" />


    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />

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


    <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="24"  android:maxSdkVersion="25" />

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

    <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" />
        <screen android:screenSize="small" android:screenDensity="xxhdpi" />
        <screen android:screenSize="small" android:screenDensity="xxxhdpi" />
        <!-- 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" />
        <screen android:screenSize="normal" android:screenDensity="xxhdpi" />
        <screen android:screenSize="normal" android:screenDensity="xxxhdpi" />

        <screen android:screenSize="large" android:screenDensity="ldpi" />
        <screen android:screenSize="large" android:screenDensity="mdpi" />
        <screen android:screenSize="large" android:screenDensity="hdpi" />
        <screen android:screenSize="large" android:screenDensity="xhdpi" />
        <screen android:screenSize="large" android:screenDensity="xxhdpi" />
        <screen android:screenSize="large" android:screenDensity="xxxhdpi" />
    </compatible-screens>

    <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">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>
        </activity>
        <activity android:name=".Registro">
            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.grupoenergeticos.gn.MainActivity" />
        </activity>
        <activity
            android:name=".Login"
            android:theme="@style/SplashTheme">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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

            <meta-data
                android:name="android.support.PARENT_ACTIVITY"
                android:value="com.grupoenergeticos.gn.MainActivity" />
        </activity>

        <provider
            android:name=".GenericFileProvider"
            android:authorities="${applicationId}.com.grupoenergeticos.gn.provider"
            android:exported="false"
            android:grantUriPermissions="true">
        <meta-data
            android:name="android.support.FILE_PROVIDER_PATHS"
            android:resource="@xml/provider_paths"/>
        </provider>
    </application> 
</manifest>

Gradle

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.0"
    lintOptions {
        abortOnError false
        checkReleaseBuilds false
    }
//    dexOptions{
//        javaMaxHeapSize "2048M"
//    }
    defaultConfig {
        applicationId "com.grupoenergeticos.gn"
        minSdkVersion 16
        targetSdkVersion 24
        versionCode 5
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }

    }

}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })


    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support:design:25.3.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha9'
    compile 'com.android.support:support-v4:25.3.1'
    compile 'com.android.support:cardview-v7:25.3.1'
    compile 'com.android.support:recyclerview-v7:25.3.1'
    compile 'com.squareup.picasso:picasso:2.5.2'
    testCompile 'junit:junit:4.12'
}
    
asked by Mario Arreaga 31.08.2017 в 00:16
source

1 answer

1

Actually the message indicates that your application is incompatible with all your devices, there will probably be others in which if it is supported, I give you 3 suggestions to avoid your application, apply the filter on some devices.

  • First suggestion,

you are indicating that all devices require this hardware feature:

 <uses-feature
        android:name="android.hardware.camera2"
        android:required="true" />

Is it really necessary? the devices that do not have this hardware will not be able to use the application therefore it would not be shown for download from Google Play, if it is not indispensable for your application I recommend you use

android:required="false"
  • If your application anticipates supporting all densities and sizes,

    this is not necessary:

            

     <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" />
            <screen android:screenSize="small" android:screenDensity="xxhdpi" />
            <screen android:screenSize="small" android:screenDensity="xxxhdpi" />
            <!-- 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" />
            <screen android:screenSize="normal" android:screenDensity="xxhdpi" />
            <screen android:screenSize="normal" android:screenDensity="xxxhdpi" />
    
            <screen android:screenSize="large" android:screenDensity="ldpi" />
            <screen android:screenSize="large" android:screenDensity="mdpi" />
            <screen android:screenSize="large" android:screenDensity="hdpi" />
            <screen android:screenSize="large" android:screenDensity="xhdpi" />
            <screen android:screenSize="large" android:screenDensity="xxhdpi" />
            <screen android:screenSize="large" android:screenDensity="xxxhdpi" />
        </compatible-screens>
    
  • You are defining that your application is supported from Android 4.1 (Jelly Bean) to Android 7.1.1 (Nougat),

Are your devices between these operating system versions?

<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="24"  
android:maxSdkVersion="25" />

This can actually be removed from your AndroidManifest.xml file since the settings in build.gradle overwrite the AndroidManifest.xml .

    
answered by 31.08.2017 / 21:32
source