2

在过去的 3 天里,我一直在研究这个问题,但是每当我在 Google Play 商店上传 android 应用程序包但在审查时收到 64 位要求错误。我的应用程序包完全基于 Java/Kotlin,并提供了一些原生支持第三方对其有依赖。我在 gradle 文件中包含了对所有架构 armeabi-v7a、arm64-v8a、x86、x86_64 的支持,还为 abi 启用了拆分。

在创建签名的应用程序包时,在分析器中它会显示其中的所有本机支持库(lib 文件夹中 armeabi-v7a、arm64-v8a、x86、x86_64 下的.so 文件)。

以下 APK 或 App Bundle 可用于 64 位设备,但它们只有 32 位本机代码: 21. 即使我添加了对 32/64 位本机代码的依赖项。

这是 Android App Bundles 属性https://ibb.co/j66wn4S

我添加的 Gradle 配置:

buildscript {
    repositories {
        maven { url 'https://plugins.gradle.org/m2/' }
    }
    dependencies {
        classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:0.12.1'
    }
}
apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'

repositories {
    maven { url 'https://maven.google.com' }
}
apply plugin: 'com.android.application'
android {
    compileSdkVersion 28
    buildToolsVersion '28.0.3'

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    defaultConfig {
        applicationId "com.application.name"
        minSdkVersion 22
        targetSdkVersion 28
        versionCode 74
        versionName "3.1"
        ndk.abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64', "armeabi"
        renderscriptTargetApi 16
        renderscriptSupportModeEnabled true
        multiDexEnabled true
        manifestPlaceholders = [onesignal_app_id               : "we54rew6r4ew654sdf4sdf54sdf4",
                                // Project number pulled from dashboard, local value is ignored.
                                onesignal_google_project_number: "REMOTE"]
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    dexOptions {
        javaMaxHeapSize "4g"
    }
}
dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:customtabs:28.0.0'
    implementation 'com.android.support:animated-vector-drawable:28.0.0'
    implementation 'com.android.support:support-media-compat:28.0.0'
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.android.support:cardview-v7:28.0.0'
    implementation 'com.mcxiaoke.volley:library-aar:1.0.0'
    implementation 'com.google.code.gson:gson:2.8.5'
    implementation 'com.google.firebase:firebase-ads:17.1.3'
    implementation 'com.github.kanytu:android-parallax-listview:v1.1'
    implementation 'com.koushikdutta.ion:ion:2.2.1'
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    implementation 'jp.wasabeef:blurry:2.1.1'
    implementation 'com.onesignal:OneSignal:3.10.6'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'com.android.support:multidex:1.0.3'
    implementation 'com.irozon.sneaker:sneaker:1.0.1'
    implementation 'com.github.bumptech.glide:glide:4.8.0'
    implementation 'com.android.support:support-v4:28.0.0'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.8.0'
    implementation 'com.daimajia.easing:library:2.0@aar'
    implementation 'com.daimajia.androidanimations:library:2.3@aar'
    implementation 'org.greenrobot:eventbus:3.1.1'
    implementation 'com.jakewharton:butterknife:8.8.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
    implementation 'com.google.android.exoplayer:exoplayer:2.8.4'
    implementation 'pl.bclogic:pulsator4droid:1.0.3'
    implementation 'com.github.yehiahd:FastSave-Android:1.0.6'
    implementation 'de.mrmaffen:vlc-android-sdk:2.0.6'
    implementation 'com.devbrackets.android:exomedia:4.3.0'
    testImplementation 'junit:junit:4.12'
    implementation 'com.jaeger.statusbarutil:library:1.5.1'
}
repositories {
    mavenCentral()
    maven {
        url "https://jitpack.io"
    }
    flatDir {
        dirs 'libx'
    }
}
apply plugin: 'com.google.gms.google-services'

截屏

4

0 回答 0