I get the following error when trying to run make example_android. I have made the following changes to Application.mk:
NDK_TOOLCHAIN_VERSION := clangAPP_PLATFORM := android-23APP_STL := c++_shared
I am using the r17b NDK toolchain, because GCC is deprecated and will be removed next iteration. It should be noted that if I change NDK_TOOLCHAIN_VERSION back to 4.9, everything builds fine.
[arm64-v8a] Compile++ : djinni_jni <= djinni_support.cpp
../../../support-lib/jni/djinni_support.cpp:591:9: error: 'jniDefaultSetPendingFromCurrent' has a non-throwing exception specification but can still throw [-Werror,-Wexceptions]
throw;
^
../../../support-lib/jni/djinni_support.cpp:588:6: note: function declared non-throwing here
void jniDefaultSetPendingFromCurrent(JNIEnv * env, const char * /*ctx*/) noexcept {
^ ~~~~~~~~
1 error generated.
It seems that the jniDefaultSetPendingFromCurrent function in djinni_support.cpp is marked noexcept, yet it still throws:
I get the following error when trying to run
make example_android
. I have made the following changes toApplication.mk
:NDK_TOOLCHAIN_VERSION := clang
APP_PLATFORM := android-23
APP_STL := c++_shared
I am using the r17b NDK toolchain, because GCC is deprecated and will be removed next iteration. It should be noted that if I changeNDK_TOOLCHAIN_VERSION
back to4.9
, everything builds fine.It seems that the
jniDefaultSetPendingFromCurrent
function indjinni_support.cpp
is markednoexcept
, yet it still throws: