android - Playstore 应用程序未在 Oreo 版本和某些设备中显示
问题描述
我在 Playstore 中启动了第一个应用程序,它没有在某些设备中显示。我在清单中给出了兼容的屏幕。我有疑问,因为它没有显示。请帮我。
我启动了第二个应用程序,但我没有在清单中提供兼容的屏幕,它显示在 Oreo 移动设备上,但 Android 少于 Marshmallow 设备,它没有直接显示,如果我给 pacakge 名称表示它的显示。
这是第一个应用程序的清单
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.getspot.getspot">
<compatible-screens>
<!-- for all normal size screens -->
<screen
android:screenDensity="hdpi"
android:screenSize="normal" />
<screen
android:screenDensity="ldpi"
android:screenSize="normal" />
<screen
android:screenDensity="mdpi"
android:screenSize="normal" />
<screen
android:screenDensity="xhdpi"
android:screenSize="normal" />
<screen
android:screenDensity="xxhdpi"
android:screenSize="normal" />
<screen
android:screenDensity="xxxhdpi"
android:screenSize="normal" />
<!-- for all large size screens -->
<screen
android:screenDensity="hdpi"
android:screenSize="large" />
<screen
android:screenDensity="ldpi"
android:screenSize="large" />
<screen
android:screenDensity="mdpi"
android:screenSize="large" />
<screen
android:screenDensity="xhdpi"
android:screenSize="large" />
<screen
android:screenDensity="xxhdpi"
android:screenSize="large" />
<screen
android:screenDensity="xxxhdpi"
android:screenSize="large" />
<!-- for all xlarge size screens -->
<screen
android:screenDensity="hdpi"
android:screenSize="xlarge" />
<screen
android:screenDensity="ldpi"
android:screenSize="xlarge" />
<screen
android:screenDensity="mdpi"
android:screenSize="xlarge" />
<screen
android:screenDensity="xhdpi"
android:screenSize="xlarge" />
<screen
android:screenDensity="xxhdpi"
android:screenSize="xlarge" />
<screen
android:screenDensity="xxxhdpi"
android:screenSize="xlarge" />
</compatible-screens>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.GET_TASKS" />
<application
android:allowBackup="true"
android:hardwareAccelerated="false"
android:icon="@drawable/getspot_logo"
android:label="@string/app_name"
android:largeHeap="true"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".activities.SplashScreen"
android:screenOrientation="portrait"
android:configChanges="keyboardHidden|orientation|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
这是第二个应用清单
<?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="com.orange.mac.orangeplus" >
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="OranglePlus"
android:largeHeap="true"
android:supportsRtl="true"
android:theme="@style/AppTheme"
tools:replace="android:label">
<activity
android:name="com.orange.mac.orangeplus.MainActivity"
android:theme="@style/AppTheme.NoActionBar"
android:label="Orange"
android:screenOrientation="portrait"
android:configChanges="orientation|keyboardHidden|screenSize">
</activity>
<activity
android:screenOrientation="portrait"
android:name="com.orange.mac.orangeplus.Splachscreen"
android:configChanges="orientation|keyboardHidden|screenSize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
摇篮文件
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 26
buildToolsVersion '26.0.2'
defaultConfig {
applicationId "com.orange.mac.orangeplus"
minSdkVersion 15
targetSdkVersion 26
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
packagingOptions {
exclude 'META-INF/ASL2.0'
exclude 'META-INF/LICENSE'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/MANIFEST.MF'
}
productFlavors {
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile('com.crashlytics.sdk.android:crashlytics:2.8.0@aar') {
transitive = true;
}
compile 'com.google.firebase:firebase-auth:11.4.2'
compile 'com.google.firebase:firebase-core:11.4.2'
compile 'com.firebase:firebase-client-android:2.5.0'
compile 'com.google.firebase:firebase-database:11.4.2'
compile 'com.android.support.constraint:constraint-layout:1.0.0'
compile 'com.jjoe64:graphview:4.2.1'
compile 'com.google.firebase:firebase-messaging:11.4.2'
testCompile 'junit:junit:4.12'
compile 'com.android.support:support-v4:26.0.0-alpha1'
compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
compile 'com.android.support:design:26.0.0-alpha1'
compile 'com.android.support:cardview-v7:26.0.0-alpha1'
}
apply plugin: 'com.google.gms.google-services'
注意:我给出了目标版本 26,最低版本 15,但为什么第一个应用程序没有显示?请帮我解决我的问题。
解决方案
推荐阅读
- java - 为什么我的 TextField 不是我命令的大小?
- php - 在线将选项列表值发送到 Dynamics crm 以使用soap php创建潜在客户
- mysql - 双数据库可能性(Firebase 和虚拟主机服务)
- bokeh - Bokeh 自定义 JS 回调的目的
- python - Python - py_compile 没有输出
- postgresql - 对两个表列之间的匹配字符串进行性能调整
- php - Node Crypto createHmac() 输出是否与具有相同输入的 PHP hash_hmac() 输出不同?
- session - 我在 Laravel 中使用自定义日志制作了项目。现在会话自动退出
- python - 计算特定列的增量时间
- php - 在亚马逊网络服务中为 codeigniter 功能运行 cron 作业