How to add library Protobuf-lite

I tried to add a library by changing the Android.mk file.

  1.  `  LOCAL_PATH := $(call my-dir)`
    
     include $(CLEAR_VARS)
    

    $(call import-add-path,$(LOCAL_PATH)/…/…/cocos2d)
    $(call import-add-path,$(LOCAL_PATH)/…/…/cocos2d/external)
    $(call import-add-path,$(LOCAL_PATH)/…/…/cocos2d/cocos)
    $(call import-add-path,$(LOCAL_PATH)/…/…/cocos2d/cocos/audio/include)

    LOCAL_MODULE := MyGame_shared

    LOCAL_MODULE_FILENAME := libMyGame

    LOCAL_SRC_FILES := hellocpp/main.cpp
    …/…/Classes/AppDelegate.cpp
    …/…/Classes/HelloWorldScene.cpp
    src/google/protobuf/arena.cc
    src/google/protobuf/arenastring.cc
    src/google/protobuf/extension_set.cc
    src/google/protobuf/generated_message_util.cc
    src/google/protobuf/io/coded_stream.cc
    src/google/protobuf/io/zero_copy_stream.cc
    src/google/protobuf/io/zero_copy_stream_impl_lite.cc
    src/google/protobuf/message_lite.cc
    src/google/protobuf/repeated_field.cc
    src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc
    src/google/protobuf/stubs/bytestream.cc
    src/google/protobuf/stubs/common.cc
    src/google/protobuf/stubs/int128.cc
    src/google/protobuf/stubs/once.cc
    src/google/protobuf/stubs/status.cc
    src/google/protobuf/stubs/statusor.cc
    src/google/protobuf/stubs/stringpiece.cc
    src/google/protobuf/stubs/stringprintf.cc
    src/google/protobuf/stubs/structurally_valid.cc
    src/google/protobuf/stubs/strutil.cc
    src/google/protobuf/stubs/time.cc
    src/google/protobuf/wire_format_lite.cc \

    LOCAL_C_INCLUDES := $(LOCAL_PATH)/…/…/Classes
    E:\Projects\MiningSimulator\ClientNew\MiningSimulator\proj.android\jni\src

    _COCOS_HEADER_ANDROID_BEGIN

    _COCOS_HEADER_ANDROID_END

    LOCAL_STATIC_LIBRARIES := cocos2dx_static

    _COCOS_LIB_ANDROID_BEGIN

    _COCOS_LIB_ANDROID_END

    include $(BUILD_SHARED_LIBRARY)

    $(call import-module,.)

    _COCOS_LIB_IMPORT_ANDROID_BEGIN

    _COCOS_LIB_IMPORT_ANDROID_END

  2. cocos compile -p android --ap android-22

    PS E:\Projects\Game\ClientNew\Game> cocos compile -p android --ap android-22
    Building mode: debug
    Using Eclipse project : E:\Projects\Game\ClientNew\Game\proj.android
    running: ‘“E:\Cocos2d_Dependence\Dependence\android-sdk\tools\android” update project -t android-22 -p E:\Projects\Game\ClientNew\Game\proj.android’

    Updated project.properties
    Updated local.properties
    Updated file E:\Projects\Game\ClientNew\Game\proj.android\proguard-project.txt
    It seems that there are sub-projects. If you want to update them
    please use the --subprojects parameter.
    running: ‘“E:\Cocos2d_Dependence\Dependence\android-sdk\tools\android” update lib-project -p E:\Projects\Game\ClientNew\Game\cocos2d\cocos\platform\android\java -t android-22’

    Updated project.properties
    Updated local.properties
    Updated file E:\Projects\Game\ClientNew\Game\cocos2d\cocos\platform\android\java\proguard-project.txt
    Building native…
    NDK build mode: debug
    running: ‘“E:\Cocos2d_Dependence\Dependence\android-ndk-r10e\ndk-build” -C E:\Projects\Game\ClientNew\Game\proj.android -j2 NDK_MODULE_PATH=E:\Projects\Game\ClientNew\Game\cocos2d;E:\Projects\Game\ClientNew\Game\cocos2d\cocos;E:\Projects\Game\ClientNew\Game\cocos2d\external NDK_TOOLCHAIN_VERSION=4.9 NDK_DEBUG=1’

    Android NDK: WARNING: APP_PLATFORM android-21 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
    Android NDK: WARNING: Unsupported source file extensions in jni/Android.mk for module MyGame_shared
    Android NDK: hellocpp/main.cpp …/…/Classes/AppDelegate.cpp …/…/Classes/HelloWorldScene.cpp
    make.exe: Entering directory E:/Projects/Game/ClientNew/MiningSimulator/proj.android' [armeabi] Compile++ thumb: MyGame_shared <= common.cc [armeabi] Compile++ thumb: MyGame_shared <= once.cc jni/src/google/protobuf/stubs/common.cc:51:2: error: #error "No suitable threading library available." #error "No suitable threading library available." ^ [armeabi] Compile++ thumb: MyGame_shared <= status.cc make.exe: *** [obj/local/armeabi/objs-debug/MyGame_shared/src/google/protobuf/stubs/common.o] Error 1 make.exe: *** Waiting for unfinished jobs.... make.exe: Leaving directoryE:/Projects/Game/ClientNew/Game/proj.android’
    Error running command, return code: 2.