I am building a static library that uses AAssetManager
(#include <android/asset_manager.h>
) in C++ and then I will use the library from java.
The thing is I can't include libandroid
because I can't use LOCAL_LDLIBS += -landroid
when building static library.(local_ldlibs
is always ignored for static libraries)
So how can build my static library without using local_ldlibs
?