std::string could not resolved in android-ndk-7b

Hi guys,
I’m facing problem to resolve std::string could not resolved in android-ndk-7b so please help me .

I’m using -

  • cocos2d-x-2.0.3
  • android-ndk-7b
  • android 4.2.2

use NDK r8d or r8e

Thanks a lot Cory for reply …
I tried with NDK r8e but it gives me same problem…

Please post the entire error and build log.

Obvious, you have something completely wrong in your setup.

  1. What OS are you building on?
  2. What command are you running?
  3. What are you trying to build?
  4. What IDE and C++ compiler?

HI I Fixed Bug. Below I mentioned some steps to fix the problem …

  1. change the Application.mk file ($PROJECT_DIR/jni/Application.mk)
    * APP_STL := stlport_static*
  2. In $PROJECT_DIR/jni/Android.mk File
    LOCAL_PATH := $(call my-dir)
    include $(CLEAR_VARS)
    LOCAL_MODULE := game_shared
    LOCAL_MODULE_FILENAME := libgame
    LOCAL_SRC_FILES := hellocpp/main.cpp …/…/Classes/AppDelegate.cpp …/…/Classes/HelloWorldScene.cpp

$(call import-module,CocosDenshion/android) $(call import-module,cocos2dx) $(call import-module,extensions)

  1. Set NDK build path ($ANDROID_NDK_DIR\sources\cxx-stl\stlport\stlport ).
    and also refer attached image for setting relevant paths.