android - Android 应用程序与 Play 商店中的新设备不兼容
问题描述
新的 android 设备版本不支持我的应用程序:您的设备与此版本不兼容。我的清单文件是:所有权限和屏幕尺寸.android 清单文件
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.fs.android.application" >
//permissions
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" android:required="false" />
<uses-permission android:name="android.permission.CALL_PHONE" android:required="false" />
<uses-permission android:name="android.permission.CAMERA" android:required="false" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:required="false" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" android:required="false" />
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" android:required="false" />
<uses-permission android:name="android.permission.READ_INTERNAL_STORAGE" android:required="false" />
<uses-permission android:name="android.permission.INTERNET" android:required="false" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" android:required="false" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" android:required="false" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" android:required="false" />
<uses-feature android:name="android.hardware.CAMERA" android:required="false" />
<uses-feature android:name="android.hardware.wifi.direct" android:required="false" />
<uses-feature android:name="android.hardware.wifi" android:required="false" />
//Device screen size
<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" />
<screen android:screenSize="xlarge" android:screenDensity="ldpi" />
<screen android:screenSize="xlarge" android:screenDensity="mdpi" />
<screen android:screenSize="xlarge" android:screenDensity="hdpi" />
<screen android:screenSize="xlarge" android:screenDensity="xhdpi" />
<screen android:screenSize="xlarge" android:screenDensity="xxhdpi" />
<screen android:screenSize="xlarge" android:screenDensity="xxxhdpi" />
</compatible-screens>
//screen size
<supports-screens
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
/>
</application>
</manifest>
}
build.gradle:所有库和 SDK version.android gradle 文件。
apply plugin: 'com.android.application'
android {
//compile sdk
compileSdkVersion 30
defaultConfig {
applicationId "com.fs.android.application"
//minimum sdk
minSdkVersion 18
//target sdk version
targetSdkVersion 30
versionCode 5
versionName "5"
multiDexEnabled true
}
buildTypes {
release {
debug {
debuggable false
}
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
testImplementation 'junit:junit:4.12'
//noinspection GradleCompatible
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
// google support library ---------------------------------------------------------------------
//implementation 'com.android.support:appcompat-v7:27.1.1'
//noinspection GradleCompatible
implementation 'com.google.android.material:material:1.1.0'
//noinspection GradleCompatible
implementation 'androidx.cardview:cardview:1.0.0'
//noinspection GradleCompatible
implementation 'androidx.recyclerview:recyclerview:1.1.0'
//noinspection GradleCompatible
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
//noinspection GradleCompatible
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
// third party dependencies -------------------------------------------------------------------
implementation 'com.balysv:material-ripple:1.0.2' // ripple effect
implementation 'com.github.bumptech.glide:glide:3.7.0' // image loader
implementation 'com.wdullaer:materialdatetimepicker:3.2.0' // date & time picker
implementation 'com.mikhaellopez:circularimageview:3.2.0' // circle image view
implementation 'com.github.pchmn:MaterialChipsInput:1.0.5' // material chip
implementation 'com.hootsuite.android:nachos:1.1.1' // material chips
implementation 'com.google.android:flexbox:0.3.2' // google flexible box
implementation 'com.crystal:crystalrangeseekbar:1.1.3' // range seek bar
implementation 'com.squareup.retrofit2:retrofit:2.0.0'
implementation 'com.squareup.retrofit2:converter-gson:2.0.0'
implementation 'com.afollestad.material-dialogs:core:0.9.4.5'
implementation 'com.google.android.gms:play-services:9.0.2'
//implementation 'com.android.support:appcompat-v7:27.1.1'
implementation "com.squareup.picasso:picasso:2.4.0"
//implementation 'com.android.support:appcompat-v7:27.1.1'
//noinspection GradleCompatible
implementation 'androidx.recyclerview:recyclerview:1.1.0' // dependency file for RecyclerView
//noinspection GradleCompatible
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.wrapp.floatlabelededittext:library:0.0.6'
implementation 'com.miguelcatalan:materialsearchview:1.4.0'
implementation 'com.github.chivorns:smartmaterialspinner:1.0.4'
implementation 'com.wrapp.floatlabelededittext:library:0.0.6'
implementation 'me.dm7.barcodescanner:zxing:1.9'
implementation 'com.wrapp.floatlabelededittext:library:0.0.6'
//noinspection GradleCompatible
implementation 'androidx.core:core:1.3.0'
//noinspection GradleCompatible
implementation 'androidx.legacy:legacy-support-core-utils:1.0.0'
//noinspection GradleCompatible
implementation 'androidx.legacy:legacy-support-core-ui:1.0.0'
implementation 'androidx.multidex:multidex:2.0.1'
//implementation 'org.apache.directory.studio:org.apache.commons.io:2.4'
implementation group: 'commons-io',
name: 'commons-io',
version: '2.4'
}
解决方案
要修复“您的设备与此版本不兼容”错误消息,请尝试清除 Google Play Store 缓存和存储空间,然后重新启动 Google Play Store 应用并再次尝试安装该应用。
- 启动设置应用程序
- 转到“应用程序”或“应用程序管理器”
- 找到“Google Play 商店”
- 选择“存储和缓存”
- 清除存储和缓存
- 再次启动 Google Play 商店应用
推荐阅读
- sql - SQL Query,有一定条件的两张表
- laravel - 除了另一个表连接之外,雄辩的递归自连接
- javascript - 如何发送参数ajax
- git - 通过 gitHubDesktop 将文件推送到 gitgub 时出错
- android - 如何在arcore android中用线条渲染文本?
- react-native - 为什么我的 PermissionsAndroid 请求总是返回已授予?
- laravel - 从数组中获取数据
- html - 如何将自定义 url 共享到 vue 中的社交媒体按钮中?
- javascript - 为什么需要多个 rotate() 将每个数字放在正确的位置?- 帆布时钟编号
- makefile - make命令如何不先搜索同一目录下的Makefile?