在終端編譯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目錄下。