Android NDK r19 could not find standard C++ header #include<string>,# include <vector> during compilation by Android studio 3.3.1 Cmake

I could not understand why the Android NDK complain that standard c++ header such string , vector could not be found during Cmake gradle compilation execute by Android studio 3.3.1

Upvotes: 0

Views: 374

Answers (1)

shizhen
shizhen

Reputation: 12583

Change the suffix of your native.lib.c jni file to .cpp

Upvotes: 2

Related Questions