Android 如何在 Google Play 商店中支持所有原生平台总是显示 138
Android how to support all native platforms in Google Play store always showing 138
我正在尝试发布一个 APK 进行内部测试。我不知道为什么它仅将支持的设备显示为 138。如何修复它以支持所有设备。
这是我的应用级别build.gradle
android {
compileSdkVersion 29
buildToolsVersion '29.0.3'
defaultConfig {
applicationId "com.test.myapp"
minSdkVersion 21
targetSdkVersion 29
versionCode 3
versionName "prod_0.1"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
generatedDensities = []
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
}
}
}
// Flag notifies aapt to keep the attribute IDs around
aaptOptions {
// additionalParameters "--no-version-vectors"
cruncherEnabled = false
}
packagingOptions {
exclude 'META-INF/services/javax.annotation.processing.Processor'
}
lintOptions {
checkReleaseBuilds false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
}
}
dexOptions {
jumboMode true
javaMaxHeapSize "4g"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
最后,我通过在清单文件中禁用这一行解决了这个问题。
<uses-feature android:name="android.hardware.wifi.rtt" />
我正在尝试发布一个 APK 进行内部测试。我不知道为什么它仅将支持的设备显示为 138。如何修复它以支持所有设备。
这是我的应用级别build.gradle
android {
compileSdkVersion 29
buildToolsVersion '29.0.3'
defaultConfig {
applicationId "com.test.myapp"
minSdkVersion 21
targetSdkVersion 29
versionCode 3
versionName "prod_0.1"
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
vectorDrawables.useSupportLibrary = true
multiDexEnabled true
generatedDensities = []
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
}
}
}
// Flag notifies aapt to keep the attribute IDs around
aaptOptions {
// additionalParameters "--no-version-vectors"
cruncherEnabled = false
}
packagingOptions {
exclude 'META-INF/services/javax.annotation.processing.Processor'
}
lintOptions {
checkReleaseBuilds false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
minifyEnabled false
}
}
dexOptions {
jumboMode true
javaMaxHeapSize "4g"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
最后,我通过在清单文件中禁用这一行解决了这个问题。
<uses-feature android:name="android.hardware.wifi.rtt" />