[英]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: 我有一个要使用的本机库,它提供以下二进制文件:
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.