Skip to content Skip to sidebar Skip to footer

Can Not Include Iostream In Android Ndk

I try to use cpp file with android project. I can use c functions without error. I add Core.cpp and Core.h in jni folder. After I only add #include and android stu

Solution 1:

You need to modify your build.gradle to specify what C++ library to link to.

android.ndk {
    moduleName = "hello-jni"
    stl        = "stlport_static"
}

See some examples of build.gradle files using the experimental NDK support here (hello-thirdparty) and here (endless-tunnel).

Post a Comment for "Can Not Include Iostream In Android Ndk"