我的应用程序兼容0个设备(Android)

时间:2018-10-11 12:29:54

标签: android compatibility

我的应用程序在任何移动设备上均不可见。从APK文件安装没有问题,效果很好,但是由于某些原因,Google Play并未列出该文件。

当我查看计算机的Google Play时,错误是:该应用程序与您的设备不兼容。

当我查看Google Play控制台-设备目录时,兼容的设备为0。

对此有何建议?

该应用的清单:

    <?xml version="1.0" encoding="utf-8"?>
    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        package="br.com.tecmafandroid.projeto.tecmaf">

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

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

        <application
            android:allowBackup="true"
            android:icon="@mipmap/ic_tecmaf"
            android:roundIcon="@mipmap/ic_tecmaf_round"
            android:label="@string/app_name"
            android:supportsRtl="true"
            android:theme="@style/AppTheme"
            tools:ignore="GoogleAppIndexingWarning">

...
        </application>

    </manifest>

build.gradle(app):

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "br.com.XXXandroid.projeto.XXX"
        minSdkVersion 15 
        targetSdkVersion 27
        versionCode 2  subindo novas versões
        versionName "1.1"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

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

dependencies {
    //dependencias firebase
    //noinspection GradleCompatible
    implementation 'com.google.firebase:firebase-core:11.8.0'
    implementation 'com.google.firebase:firebase-database:11.8.0'
    implementation 'com.google.firebase:firebase-storage:11.8.0'
    implementation 'com.google.firebase:firebase-auth:11.8.0'
    implementation 'com.firebaseui:firebase-ui-storage:0.6.0'

    //noinspection GradleCompatible
    implementation 'com.android.support:appcompat-v7:27.1.1'
    implementation 'com.android.support.constraint:constraint-layout:1.1.2'
    implementation 'com.android.support:support-v4:27.1.1'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.2'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support:design:27.1.1'
    implementation 'com.android.support:multidex:1.0.3'
    implementation 'com.squareup.picasso:picasso:2.71828'
    implementation 'com.github.rtoshiro.mflibrary:mflibrary:1.0.0'
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    implementation 'com.android.support:cardview-v7:27.1.1'
    implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'
    implementation 'com.github.jd-alexander:LikeButton:0.2.3'
}
apply plugin: 'com.google.gms.google-services'

1 个答案:

答案 0 :(得分:1)

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

它将列出仅具有摄像机2的设备

为了列出所有设备, 制作android:required = "false"并处理没有Camera 2的设备。