Compiling lua-empty-test in release mode

I cannot compile lua-empty-test in release mode
cpp-empty-test compiles with no problem.

Using either cocos deploy -m release -p android or cocos run -m release -p android

Using window 10
cocos2d-x-3.12
r10c (64-bit)

I have tried the following NDK’s r10c r10d r10e r11 r12 r12b

Error are related to arm

\cocos2d-x\tests\lua-empty-test\project/proj.android\../../../../cocos/editor-support/cocostudio/CCComAttribute.cpp:32: error: relocation overflow in R_ARM_THM_CALL

PLUS MANY OTHERS

Added

LOCAL_ARM_MODE := arm

to both android.mk and application.mk

Andre

Any help would be appreciated

I have just recompiled with and without

LOCAL_ARM_MODE := arm

added to the mk files

It does not make any difference the same files have relocation overflow.

Andre

Finally got a version of the NDK that works,

r9d

Hope this may help other which are trying to create a release version of their code.

Andre