cocos打包出现 BUILD FAILED 问题

来源:互联网 发布:python dict 排序 编辑:程序博客网 时间:2024/06/03 15:53

问题如下:

BUILD FAILED

/Users/daidan/Documents/android/adt/sdk/tools/ant/build.xml:932: The following error occurred while executing this line:

/Users/daidan/Documents/android/adt/sdk/tools/ant/build.xml:950: null returned: 1


Total time: 12 seconds

Error running command, return code: 1


解决方法:

注释掉project.properties文件中的#android.library.reference.1=../cocos2d/cocos/platform/android/java

如不行请看以下解决方案:

6.BUILD FAILED

出现build.xml:932 build.xml:950

1
2
3
/Users/xxx/project/work/androidPackage/sdk/tools/ant/build.xml:932: The following error occurred while executing this line:
/Users/xxx/project/work/androidPackage/sdk/tools/ant/build.xml:950: null returned: 1
Error running command, return code: 1

这是由于你的资源文件中出现了中文命名的文件,AAPT是没有办法识别的, IOS是可以识别的,但是AAPT不行,所以最好不要使用中文命名任何文件或者文件夹。

意思是说文件和文件夹不能是中文命名。


0 0
原创粉丝点击