简体   繁体   English

寻找Andengine 64位版本

[英]Looking for Andengine 64bit version

Google developer console requests my Andengine based Android game to be uploaded in both 32bit and 64bit versions. Google 开发者控制台要求我的基于 Andengine 的 Android 游戏以 32 位和 64 位版本上传。 see here: Get your apps ready for the 64-bit requirement请参阅此处: 让您的应用程序为 64 位要求做好准备

So i am looking for a libandengine.so in 64bit so i can build my 64bit compliant apk.所以我正在寻找一个 64 位的 libandengine.so,这样我就可以构建我的 64 位兼容 apk。

If anyone successfully acquired the 64 bit .so , please send me - thanks!如果有人成功获得了 64 位 .so ,请发给我 - 谢谢!

libandengine.so file contains just 2 classes GLES20Fix and BufferUtils , herethey are . libandengine.so文件只包含 2 个类GLES20FixBufferUtils它们是. Here are java classes GLES20Fix.java and BufferUtils.java which call classes from libandengine.so .以下是Java类GLES20Fix.javaBufferUtils.java其称之为类从libandengine.so As you can see from java source code and comments C-classes contains workarounds for system bugs 11078 , 16941 , 8931 which were in Android 2.2 (froyo), Android 3.0 (honeycomb) and Android 3.2 (honeycomb_mr2).正如您从 java 源代码和注释中看到的,C 类包含系统错误11078169418931 的变通方法,这些错误出现在 Android 2.2 (froyo)、Android 3.0 (honeycomb) 和 Android 3.2 (honeycomb_mr2) 中。

So, if you don't support android 2.x and 3.x devices you should just delete all libandengine.so files from your project.因此,如果您不支持 android 2.x 和 3.x 设备,您应该从项目中删除所有libandengine.so文件。 We did so with our project about year ago, everything works ok.大约一年前,我们在我们的项目中这样做了,一切正常。

If you are using any libs, then create copy for 64bit too.. ie your lib directory contains any of X86 then itshould contains X86_64 or armeabi/v71 then v8a also.如果您正在使用任何库,那么也为 64 位创建副本.. 即您的 lib 目录包含任何 X86 然后它应该包含 X86_64 或 armeabi/v71 然后 v8a 也。

And in Module.gradle file, in defaultconfig attribute add files for 64 bit like :在 Module.gradle 文件中,在 defaultconfig 属性中添加 64 位文件,例如:

 ndk {
            abiFilters "armeabi", "armeabi-v7a", "x86", "mips","x86_64","armeabi-v8a"
        }

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM