[SOLVED] Std::map no template type (porting to Android)

Background: I’ve made a game in Cocos2dx 3.10 using the precompiled engine. I’m currently porting it to Android Studio using this workaround that involves having Xcode reference the precompiled libraries and using the source code to build the Android Studio project.

When executing cocos compile -p android --android-studio I’m getting a host of fatal errors, many of which are due to my liberal use of Objective-C++ and some iOS specific functions (which is why you should ALWAYS plan ahead!! :smile: ) that I’ll have to work around.

What’s bothering me right now is this particular C++ error, for which I have no answer:

In file included from jni/../../../Classes/JSONParser.cpp:9:0:
jni/../../../Classes/JSONParser.hpp:29:17: error: 'map' in namespace 'std' does not name a template type
static std::map<std::string, int> getUnlockables();
            ^

The map I’ve declared clearly declares the template as well. I’m sure there’s something obvious I’m overlooking, but any input would be greatly appreciated.

EDIT: I should add that this compiles and executes perfectly in Xcode.

Fixed it with the following changes to Application.mk:

APP_STL := c++_static
NDK_TOOLCHAIN_VERSION := clang