关于cocos2d-lua打包下arm64-v8a的情况手机黑屏

compileSdkVersion 30
buildToolsVersion ‘30.0.2’
ndkVersion “21.4.7075529”
minSdkVersion 21
gradle 6.7.1
gradle plugin 4.2.0

首先我是使用已经编译好的so文件进行打包的,由于Google需要提升API level到30.
compileSdkVersion 30 buildToolsVersion '30.0.2'
导致部分手机黑屏.
测试发现.abiFilters 只有再选择arm64-v8a的情况下才会黑屏.仅有armeabi-v7a是正常的
急需帮助!急需帮助!

用回复里面的luajit

谢谢你, 但是,现在编译出现了这个问题 :sleepy:

Task :LuaEmptyTest:externalNativeBuildDebug FAILED
Build game_armeabi-v7a
make: *** No rule to make target ‘game’. Stop.

Execution failed for task ‘:LuaEmptyTest:externalNativeBuildDebug’.

Build command failed.
Error while executing process C:\Users\SLG\AppData\Local\Android\Sdk\ndk\21.4.7075529\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=D:\cocos2d-x-3.17\tests\lua-empty-test\project\proj.android\app\jni\Android.mk NDK_APPLICATION_MK=D:\cocos2d-x-3.17\tests\lua-empty-test\project\proj.android\app\jni\Application.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=D:/cocos2d-x-3.17/tests/lua-empty-test/project/proj.android/app/build/intermediates/ndkBuild/debug/obj NDK_LIBS_OUT=D:\cocos2d-x-3.17\tests\lua-empty-test\project\proj.android\app\build\intermediates\ndkBuild\debug\lib NDK_TOOLCHAIN_VERSION=clang V=1 -j16 NDK_DEBUG=1 game}

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.