Error for string [Cocos2d-x Android]

Here may be an error blog. Well, this time is so easy.

The error log

error: 'string' in namespace 'std' does not name a type

The simple solution

Add this code.
#include <string>
Done!

Ref link

https://stackoverflow.com/questions/11853851