简体   繁体   English

如果我具有32位本机库,那么Android应用仍是64位吗?

[英]Is an Android app still 64bit if i have a 32bit native libary?

I have a native library i want to use, it offers the following binaries: 我有一个要使用的本机库,它提供以下二进制文件:

  • arm64-v8a arm64-V8A
  • armeabi armeabi
  • armeabi-v7a armeabi-V7A
  • mips MIPS
  • mips64 MIPS64
  • x86 86
  • x86_64 x86_64的

Our minSDK is 18 if this is relevant. 如果相关的话,我们的minSDK为18。 According to https://developer.android.com/ndk/guides/abis.html armeabi, mips and mips64 are deprecated/removed. 根据https://developer.android.com/ndk/guides/abis.html armeabi的规定,不推荐使用mips和mips64。

What would be the best way to use it? 最好的使用方式是什么?

x86_64 and arm64 can run without problem x86 and armeabi-v7a code, so if you don't include binaries for 64bit archs - 32bit binaries will be selected x86_64和arm64可以运行而不会出现问题x86和armeabi-v7a代码,因此,如果您不包括64位Arch的二进制文件-将选择32bit二进制文件

So, if your goal isn't minimize apk size, you should include binaries for all targeted ABIs 因此,如果您的目标不是最小化apk大小,则应包括所有目标ABI的二进制文件

Google has recently announced that Google最近宣布

In August 2019, Play will require that new apps and app updates with native libraries provide 64-bit versions in addition to their 32-bit versions. 在2019年8月,Play将要求具有本机库的新应用程序和应用程序更新除了提供32位版本外,还必须提供64位版本。

So, you have a year and a half to get ready with arm64-v8a. 因此,您有一年半的时间准备使用arm64-v8a。 At any rate, split APK is not hard, and is very handy. 无论如何,拆分APK并不困难,而且非常方便。

I agree with @Anton Malyshev that most developers can ignore x86 targets in production (they may be very useful during development, because x86_64 emulator is much faster). 我同意@Anton Malyshev的观点,即大多数开发人员可以忽略生产中的x86目标(它们在开发过程中可能非常有用,因为x86_64仿真器要快得多)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从32位计算机迁移到64位计算机时,我必须卸载我的应用 - When moving from 32bit machine to 64bit I have to uninstall my app 'armeabi'是32位还是64位? - Is 'armeabi' 32bit or 64bit? 从 32 位计时器获取 64 位时间戳 - Get 64bit timestamps from a 32bit timer 确保gradle依赖项在应用包中包括32位和64位库 - Make sure a gradle dependency includes 32bit and 64bit libraries in app bundles 使用 64 位或 32 位版本的 Android Studio 时,Gradle 卡在“build”或“assembleDebug” - Gradle gets stuck at either 'build' or 'assembleDebug' when using the 64bit or 32bit version of Android Studio 64位android,32位应用程序,32位本机库 - 64 bit android, 32 bit application with 32 bit native library Qsettings 适用于 32 位 apk,但不会在我的 64 位 apk 中创建文件 - Qsettings works for 32bit apk but does'nt create file in my 64bit apk 为 arm 64 位(适用于 32 位)构建时缺少 DLL “arcore-camera-utility” - Missing DLL “arcore-camera-utility” when building for arm 64bit (works for 32bit) 仅针对 64 位目标而不是 32 位目标运行 CTS - Run CTS only for 64bit target and not for 32bit target Ubuntu 13.10 64位-> 32位Oracle JDK-> IntelliJ Idea Comm。 版本:如何? - Ubuntu 13.10 64bit -> 32bit Oracle JDK -> IntelliJ Idea Comm. edition: HOW?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM