在终端编译cocos run -p android出现如下错误:
Android NDK: WARNING: APP_PLATFORM android-17 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
Android NDK: /cocos2d-x-3.2/liaoTianShi/proj.android/../cocos2d/external/websockets/prebuilt/android/Android.mk: Cannot find module with tag 'libpomelo' in import path
Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined ?
Android NDK: The following directories were searched:
Android NDK:
make: Entering directory `/cocos2d-x-3.2/liaoTianShi/proj.android'
jni/Android.mk:49: *** Android NDK: Aborting. . Stop.
make: Leaving directory `/cocos2d-x-3.2/liaoTianShi/proj.android'
Error running command, return code: 2
解决方法:
/cocos2d-x-3.2/liaoTianShi/cocos2d/external git clone https:
//github.com/NetEase/libpomelo.git
下载libpomelo库到/cocos2d-x-3.2/liaoTianShi/cocos2d/external目录下。