我最近将gradle更新为3.4.0,在将构建版本上载到商店时,我收到一条警告消息,通知我用户将无法看到新构建。
旧版apk与新版apk之间的唯一区别在于,新版apk仅具有这些本机平台
Native platforms
arm64-v8a, armeabi-v7a, x86, x86_64
而旧版本也有mips
abi。
上传他的作品几小时后,我去了商店,看不到新作品。
有什么想法吗?如果不推荐使用apk,为什么会影响商店中apk的显示??!
还是这个问题可能来自另一个地方?
编辑
问题是否会因此而引起?
// Butterknife requires Java 8.
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
编辑2
这是我整个应用级别的build.gradle
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.29.0'
}
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
android {
lintOptions { checkReleaseBuilds false }
compileSdkVersion 28
buildToolsVersion '28.0.3'
signingConfigs {
releaseSign {
storeFile file("$rootProject.projectDir/keystore_release.jks")
storePassword 'xxxxx'
keyAlias 'xxxx'
keyPassword 'xxxx'
}
}
// Butterknife requires Java 8.
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
applicationId "com.xxxx.driver"
minSdkVersion 19
targetSdkVersion 28
versionCode 27
versionName "1.0.27"
renderscriptTargetApi 19
renderscriptSupportModeEnabled true
multiDexEnabled true
splits {
abi {
reset()
include "x86", "armeabi-v7a", "armeabi-v8a", "x86_64", "mips", "mips64"
universalApk true
}
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.releaseSign
}
}
flavorDimensions "default"
productFlavors {
beta {
applicationId "com.xxxx.driver.beta"
dimension "default"
resValue "string", "app_name", "Driver Beta"
resValue "string", "privacy_policy_url", "https://www.xxxxxx"
buildConfigField "String", "BASE_URL", '"https://xxxxxxx"'
buildConfigField "Boolean", "IS_BETA", "true"
buildConfigField "String", "TENANT", '"xxxxx"'
}
production {
applicationId "com.xxxxx.driver"
dimension "default"
resValue "string", "app_name", "Driver"
resValue "string", "privacy_policy_url", "https://www.xxxxx"
buildConfigField "String", "BASE_URL", '"https://xxxxx"'
buildConfigField "Boolean", "IS_BETA", "false"
buildConfigField "String", "TENANT", '"xxxx"'
}
}
packagingOptions {
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/notice'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license'
exclude 'META-INF/license.txt'
}
}
configurations.all {
// resolutionStrategy {
// eachDependency { DependencyResolveDetails details ->
// if (details.requested.group == 'com.android.support' && details.requested.name != 'multidex') {
// details.useVersion "28.0.0"
// }
// }
// }
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0-alpha05'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.google.android.material:material:1.1.0-alpha06'
implementation 'com.jakewharton:butterknife:10.1.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:10.1.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'me.grantland:autofittextview:0.2.1'
implementation 'com.android.volley:volley:1.1.1'
implementation 'org.greenrobot:eventbus:3.1.1'
implementation 'com.github.ybq:Android-SpinKit:1.2.0'
implementation 'com.google.android.gms:play-services-location:16.0.0'
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.0'
implementation 'com.google.firebase:firebase-core:16.0.9'
implementation 'com.google.firebase:firebase-messaging:18.0.0'
implementation 'androidx.multidex:multidex:2.0.1'
def work_version = "2.0.1"
implementation "androidx.work:work-runtime:$work_version"
// Optional - RxJava2 support
implementation "androidx.work:work-rxjava2:$work_version"
def futures_version = "1.0.0-beta01"
implementation "androidx.concurrent:concurrent-futures:$futures_version"
implementation 'com.github.delight-im:Android-AdvancedWebView:v3.0.0'
}
apply plugin: 'com.google.gms.google-services'
还有我的顶级build.gradle
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.0'
classpath 'com.google.gms:google-services:4.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
答案 0 :(得分:1)
所以我自己弄清楚了。解决的办法是,他们的系统有故障。我的应用没有任何问题。我给他们发送了一封电子邮件,他们在一周多之后回答了。之后,一切正常。在发布此问题几天后,一位同事在另一个应用程序中也遇到了此问题,因此,如果您碰巧遇到此问题,请向他们发送电子邮件并询问。