Nakama SDK Android + Cocos2d-x

I would like to integrate Nakama SDK into my game developed in iOS and Android with cocos2d-x 3.17.2.
I integrated it in iOS successfully but I’m facing some problems in Android.
I’ve already read the guide (, but it didn’t help me.

I’m using:

  • Cocos2d-x 3.17.2.
  • NDK r16b.
  • Android Studio 3.5.3
  • cmake

I added these lines in my CMakeLists.txt:

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/nakama_cocos2d_sdk ${CMAKE_CURRENT_BINARY_DIR}/nakama-cpp)
target_link_libraries(${APP_NAME} ext_nakama-cpp)

This is the compile error I’ve when I add that lines:


What’s the problem?

The file CMakeLists.txt is located here:


Please check is there android folder in nakama_cocos2d_sdk/libs

1 Like

Yeah that’s the problem thanks!!!