如何正确设置cocos2d-x-3.2

时间:2014-10-21 19:47:13

标签: cocos2d-x cocos2d-x-3.0

我双击setup.pysetup但跳过关于设置Android环境的所有步骤。然后我运行命令cocos并发生运行时错误。

F:\lib\cocos2d-x-3.2\cocos2d-x-3.2\tools\cocos2d-console\bin\/cocos.py 0.7 - coc
os console: A command line tool for cocos2d

Available commands:
Traceback (most recent call last):
  File "F:\lib\cocos2d-x-3.2\cocos2d-x-3.2\tools\cocos2d-console\bin\/cocos.py",
 line 492, in <module>
    help()
  File "F:\lib\cocos2d-x-3.2\cocos2d-x-3.2\tools\cocos2d-console\bin\/cocos.py",
 line 433, in help
    classes = parse_plugins()
  File "F:\lib\cocos2d-x-3.2\cocos2d-x-3.2\tools\cocos2d-console\bin\/cocos.py",
 line 400, in parse_plugins
    cp = ConfigParser.ConfigParser(allow_no_value=True)
TypeError: __init__() got an unexpected keyword argument 'allow_no_value'

我想知道正确的停止。

2 个答案:

答案 0 :(得分:0)

答案 1 :(得分:-2)

如何设置cocos2dx
- &GT;下载cocos2dx
- &gt;下载android ndk
- &gt;下载android sdk
- &gt;下载python
- &gt;下载apache ant

现在设置cocos2dx
- &gt;打开cmd
- &gt; cd cocos2dx文件夹
- &GT; setup.py
- &gt;设置android ndk路径
- &gt;设置android sdk路径
- &gt;设置bin的ant路径 完整设置

创建新项目
cocos new MyGame -p com.MyCompany.MyGame -l cpp -d~ / MyCompany