error: cannot use 'try' with exceptions disabled

NDK编库时,出现error: cannot use ‘try’ with exceptions disabled这个错误。

解决方案:
在Android.mk中添加LOCAL_CPPFLAGS += -fexceptions即可编译成功。

你可能感兴趣的:(bug)