pomelo在android編譯時出現的錯誤解決方案

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

發佈了27 篇原創文章 · 獲贊 11 · 訪問量 7萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章