Android ICS 4.0 NDK NewStringUTF is crashing down the App

前端 未结 10 1988
长情又很酷
长情又很酷 2020-12-02 15:01

I have a method in JNI C/C++ which takes jstring and returns back jstring some thing like as below,

  NATIVE_CALL(jstring, method)(JNIEnv * env, jobject obj         


        
10条回答
  •  旧时难觅i
    2020-12-02 15:24

    I had this problem when I change the file Application.mk

    From this line:

    APP_STL := stlport_static
    

    To:

    APP_STL := gnustl_static
    

    Once I changed it back again it fixed the issue.

提交回复
热议问题