記錄下步序…
1.到appcation.mk里改加個APP_PLATFORM := android-9
2.到build_native.py里加
try:
COCOS_CONSOLE_ROOT = os.environ’COCOS_CONSOLE_ROOT’]
except Exception:
print “COCOS_CONSOLE_ROOT not define. Please define COCOS_CONSOLE_ROOT in your environment!”
sys.exit(1)
3. cd到proj.android里python build_native.py
4*proj.android里的src ,copy一份
5,把cocos2d->cocos-> platform->android->java->src里的複制到proj.android里的src里合併。
更改遊戲…
貼回src到proj.android里
再python build_native.py編譯
重复…
把cocos2d->cocos-> platform->android->java->src里的複制到proj.android里的src里合併。