Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- externalNativeBuild {
- cmake {
- cppFlags "-frtti -fexceptions -pthread -v -std=c++11"
- arguments '-DANDROID_PLATFORM=android-9', '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=gnustl_shared'
- }
- }
- ndk {
- abiFilters 'armeabi'
- }
- unw_get_reg
- _Unwind_VRS_Interpret
- __gnu_Unwind_RaiseException
- ___Unwind_RaiseException
- __cxxabiv1::__cxa_throw(void *, std::type_info *, void (*)(void *))
- throw std::exception();
- #include <exception>
- #include <android/log.h>
- void testTryCatch() {
- try {
- throw std::exception();
- }catch(std::exception &e){
- __android_log_write(ANDROID_LOG_INFO, "testException", "done");
- }
- }
- JNIEXPORT void JNICALL
- Java_de_company_project_wrapper_SystemWrapper_startApplication(JNIEnv *env,
- jclass obj)
- {
- testTryCatch();
- }
Add Comment
Please, Sign In to add comment