看看用这个系统提供的变量能不能得到。 android.os.Build.CPU_ABI public static final String CPU_ABI
在你的Android.mk 里定义 Plain Text code?123ifeq ($(TARGET_ARCH),x86)LOCAL_CFLAGS += -DX86_ARCHendif 然后在你的code里定义 C/C++ code?123#ifndef X86_ARCH<Your function want exec only on ARM>#endif ……
ifeq ($(TARGET_ARCH),x86) LOCAL_CFLAGS += -DX86_ARCH endif
#ifndef X86_ARCH <Your function want exec only on ARM> #endif
80,493
社区成员
91,377
社区内容
加载中
试试用AI创作助手写篇文章吧