@zhangxm check my post: How to link prebuilt Cocos2D X C++ library to Android Studio project?
It’s a slightly modified configuration from a pull request.
In my case I’m not seeing cocos files (only my own cpp files), because I’m using precompiled version, however at some point I had a version where I could see them, so it’s for sure possible.