Enable Exception C++

后端 未结 8 762
醉梦人生
醉梦人生 2021-01-01 13:00

I am trying to make APP native code for Android. The Native code is in cplusplus. Whenever I try to make, the following error appears.

H236Plus.cpp:13

8条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-01 13:14

    I solved this problem by adding cFlags "-fexceptions" into ndk section of build.gradle script, like this:

    ndk {
        ...
        cFlags "-fexceptions"
    }
    

提交回复
热议问题