Facebook Installation completed with errors :| cocos2dx js v3.17.2

Facebook Installation completed with errors :| cocos2dx js v3.17.2
0

1 Like

plz try

sdkbox import facebook --staging -v
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 39b29f6..c9e588f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -129,6 +129,30 @@ target_include_directories(${APP_NAME}
 
 # mark app resources
 setup_cocos_app_config(${APP_NAME})
+# PluginFacebook
+if(ANDROID)
+    add_definitions(-DSDKBOX_ENABLED)
+    add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/proj.android/app/jni/PluginFacebook/)
+    target_link_libraries(${APP_NAME} ext_PluginFacebook)
+endif()
+# sdkbox
+if(ANDROID)
+    add_definitions(-DSDKBOX_ENABLED)
+    add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/proj.android/app/jni/sdkbox/)
+    target_link_libraries(${APP_NAME} ext_sdkbox)
+endif()
 if(APPLE)
     set_target_properties(${APP_NAME} PROPERTIES RESOURCE "${APP_UI_RES}")
     if(MACOSX)