如何在 Unity 上判断哪个插件不兼容 64 位?
How to tell on Unity which plugin isn't 64bit compliant?
当我上传新版本的应用程序时,Google Play 管理中心收到以下错误消息。
"The following APKs or App Bundles are available to 64-bit devices,
but they only have 32-bit native code: ..."
我的问题是:我怎么知道我使用的哪个库不兼容 64 位?
我假设这是一个库导致的,因为在我的项目设置中,我认为一切都是正确的:App Bundle (AAB) 已启用,脚本后端是 IL2CPP,所有 3 种架构都已检查(ARMv7、ARM64、x86 ).
我用的库不多,我只用 AdMob、Firebase、Unity Analytics/Diagnostics/IAP 和 sqlite(它有 3 个独立的 SO,每个 architecture/CPU 有一个标记)。
编辑:我使用的是 Unity 2019.1.12f1
可能与
重复
尝试在没有 x86 目标架构的情况下构建您的项目。由于 x86_64 不受 Unity 支持,您在此缺少 64 位。
Google 描述了如何在此处检查 64 位库:https://developer.android.com/distribute/best-practices/develop/64-bit
Does your app include 64-bit libraries?
The simplest way to check for 64-bit libraries is to inspect the structure of your APK file. When built, the APK will be packaged with any native libraries needed by the app. Native libraries are stored in various folders based on the ABI. It isn't required to support every 64-bit architecture, but for each native 32-bit architecture you support you must include the corresponding 64-bit architecture.
For the ARM architecture, the 32-bit libraries are located in armeabi-v7a. The 64-bit equivalent is arm64-v8a.
For the x86 architecture, look for x86 for 32-bit and x86_64 for 64-bit.
当我上传新版本的应用程序时,Google Play 管理中心收到以下错误消息。
"The following APKs or App Bundles are available to 64-bit devices, but they only have 32-bit native code: ..."
我的问题是:我怎么知道我使用的哪个库不兼容 64 位?
我假设这是一个库导致的,因为在我的项目设置中,我认为一切都是正确的:App Bundle (AAB) 已启用,脚本后端是 IL2CPP,所有 3 种架构都已检查(ARMv7、ARM64、x86 ).
我用的库不多,我只用 AdMob、Firebase、Unity Analytics/Diagnostics/IAP 和 sqlite(它有 3 个独立的 SO,每个 architecture/CPU 有一个标记)。
编辑:我使用的是 Unity 2019.1.12f1
可能与
尝试在没有 x86 目标架构的情况下构建您的项目。由于 x86_64 不受 Unity 支持,您在此缺少 64 位。
Google 描述了如何在此处检查 64 位库:https://developer.android.com/distribute/best-practices/develop/64-bit
Does your app include 64-bit libraries? The simplest way to check for 64-bit libraries is to inspect the structure of your APK file. When built, the APK will be packaged with any native libraries needed by the app. Native libraries are stored in various folders based on the ABI. It isn't required to support every 64-bit architecture, but for each native 32-bit architecture you support you must include the corresponding 64-bit architecture.
For the ARM architecture, the 32-bit libraries are located in armeabi-v7a. The 64-bit equivalent is arm64-v8a.
For the x86 architecture, look for x86 for 32-bit and x86_64 for 64-bit.