【问题标题】:PlayStore -The following APKs or app bundles are available on 64-bit devices, but have only native 32-bit code: 1PlayStore - 以下 APK 或应用程序包可在 64 位设备上使用,但只有本机 32 位代码:1
【发布时间】:2020-03-07 02:16:06
【问题描述】:

我正在更新我们的一个原生 Android 应用程序,当我将 apk( 或捆绑包上传到 Play 商店时,我收到以下消息

我没有使用任何本地 3rd 方库,我的 apk 也不包含 lib 文件夹

这是我的buid.gradle 供参考

  buildscript {
 ...

    }



    android {
        compileSdkVersion 29
        buildToolsVersion "28.0.3"
        defaultConfig {
            applicationId "xx.xxx.xxxxx"
            minSdkVersion 19
            targetSdkVersion 29
            versionCode 9
            versionName '1.3'
            multiDexEnabled true

        }



    dependencies {
        implementation 'com.google.android.material:material:1.0.0'
        implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
        implementation 'com.google.android.gms:play-services-vision:19.0.0'
        implementation 'com.google.firebase:firebase-analytics:17.2.1'
        implementation 'com.google.android.gms:play-services-location:17.0.0'
        implementation 'com.edwardvanraak:MaterialBarcodeScanner:0.0.6-ALPHA'


        compile('it.sephiroth.android.library.horizontallistview:hlistview:1.2.2') {
            exclude group: 'com.android.support', module: 'support-v4'
        }
        implementation 'de.greenrobot:eventbus:2.4.0'
        implementation 'com.mcxiaoke.volley:library:1.0.19'
        // Google Play Services
        compile('com.github.johnkil.android-robototextview:robototextview:4.0.0') {
            exclude group: 'com.android.support', module: 'appcompat-v7'

        }
        compile('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
            transitive = true
        }


        apply plugin: 'com.google.gms.google-services'

    }

【问题讨论】:

  • 分析您的 apk 文件 (developer.android.com/studio/build/apk-analyzer)。它将帮助您找到导致问题的库。
  • 这是因为您必须为 64 位设备提供支持。您在项目中添加的一些第三方库不提供对 64 位设备的支持,或者试试这个:stackoverflow.com/a/57712641/6021469
  • @ShwetaChauhan 已经找到了,根本没有找到 lib 文件夹
  • 你的构建文件中有 abiFilters 吗?
  • @FaridForootan 不,没有

标签: android architecture google-play 64-bit


【解决方案1】:

问题不是由任何本机依赖引起的,因为我的项目没有。我通过禁用仅支持 32 位架构的 GooglePlay 上的旧版本解决了这个问题。

【讨论】:

    猜你喜欢
    • 2020-02-03
    • 2019-12-28
    • 1970-01-01
    • 2020-01-11
    • 2020-05-03
    • 2020-01-02
    • 2022-01-21
    相关资源
    最近更新 更多