【问题标题】:0 supported devices in google play store0 谷歌商店支持的设备
【发布时间】:2018-12-07 05:29:46
【问题描述】:

我在 play store 上上传了 apk,它说支持 0 个设备,我也更改了目标 sdk,正如另一个答案中所建议的那样,但它不起作用。

manifest.xml

    <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.eadevelopers.tatto">

    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <permission android:name="com.eadevelopers.tatto.CAMERA" />
    <uses-feature android:name="android.hardware.camera" android:required="true"/>
    <uses-feature android:name="android.hardware.camera.autofocus" android:required="true" />
    <uses-feature android:name="android.hardware.camera2.full" android:required="true"/>


    <application
        android:name="com.eadevelopers.tatto.Global"
        android:allowBackup="true"
        android:hardwareAccelerated="true"
        android:icon="@drawable/icon_80"
        android:label="@string/app_name"
        android:largeHeap="true">


            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

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


    </application>

</manifest>

gradle 文件

    apply plugin: 'com.android.application'

android {
    compileSdkVersion 27


    defaultConfig {
        applicationId "com.eadevelopers.tatto"
        minSdkVersion 14
        targetSdkVersion 27
        versionCode 3
        versionName "1.2"
    }

    buildTypes {

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




        }

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

        }

    }


}

dependencies {
    implementation files('libs/mint-5.1.0.jar')
    implementation 'com.android.support:support-v4:25.1.0'
    implementation 'com.android.support:appcompat-v7:27.1.0'
    implementation 'com.google.android.gms:play-services-ads:15.0.0'

}

这些是我的清单和 gradle 文件。我已经更改了目标 sdk 版本,但没有奏效我认为问题出在权限的某个地方,但我不知道在哪里。我已经上传了 3 个带有更改的 apk,但支持的设备仍然是 0。

【问题讨论】:

  • 最有可能冲突的要求。我猜没有设备有你列出的所有&lt;uses-feature
  • android:required="false"
  • 删除 并将 'android:required="false"' 添加到所有使用功能。

标签: android android-studio gradle google-play-console


【解决方案1】:

好的,我得到了修复。杰伊的评论。

Remove <permission android:name="com.eadevelopers.tatto.CAMERA" /> and add 'android:required="false"' to all uses-feature. – Jay Jun 28 at 8:08

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-27
    • 1970-01-01
    相关资源
    最近更新 更多