Android App拥有有限支持的设备Google Play商店

时间:2017-08-14 13:51:34

标签: android google-play

好的,我发布了一个我在Play商店发布的应用,但似乎我的应用只与少数设备兼容。我习惯为Apple发布,所以我不知道我的清单中有什么可以排除这么多设备。没有受欢迎的设备支持:(

我希望得到一些帮助,找出我的清单中要更改的内容以解决这个问题?

<?xml version='1.0' encoding='utf-8'?>
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="com.########" xmlns:android="http://schemas.android.com/apk/res/android">
    <supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
    <uses-permission android:name="android.permission.INTERNET" />
    <application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true">
        <activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
            <intent-filter android:label="@string/launcher_name">
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>
    <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="25" />
</manifest>

2 个答案:

答案 0 :(得分:0)

在Android Studio中检查您的app build.gradle文件,并在默认配置下检查minSdkVersion,并为最小的android api版本设置API级别

apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
    applicationId "com.example.sociallogin"
    minSdkVersion 16
    targetSdkVersion 25
    versionCode 1
    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.constraint:constraint-layout:1.0.0-alpha9'
testCompile 'junit:junit:4.12'
}

答案 1 :(得分:0)

Google Play控制台会告诉您如何使用清单限制受众群体。

打开Goog​​le Play控制台&gt;发布管理&gt;应用发布&gt;管理生产&gt;在APK列表中,单击发布版本右侧的(i)图标,您应该会看到上传的清单要求,如:

  

APK详细信息 - com.example
支持的Android设备 11515   设备
API级别 15 +
目标SDK 23
屏幕   布局 4个屏幕布局
本地化默认为+115种语言   
功能 2个功能
所需权限 41   权限
OpenGL ES版本1.0+
OpenGL纹理全部   纹理
原生平台** armeabi,armeabi-v7a,x86 **

请注意我在apk中标记为粗体的参数,并将它们与您项目的清单进行比较。 如果您发现两者之间存在任何差异,则可能意味着您在项目中使用的库或依赖项限制了项目的受众。

您可以查看Android Studio如何将清单文件与依赖项合并,请参阅:https://developer.android.com/studio/build/manifest-merge.html#inspect_the_merged_manifest_and_find_conflicts

相关问题