'Android Native API ANativeWindow_setFrameRate is undefined when linking

Inside my "native.cpp" file I reference the native method; ANativeWindow_setFrameRate

But when I compile I get;

ld: error: undefined symbol: ANativeWindow_setFrameRate

Inside of "CMakeLists.txt" file I specify -landroid to link with API. Why am I getting this error?

Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source