1.8.1编译一个麻将游戏失败

xcdm100
Tue, 06 Feb 2018 07:42:01 +0000

Creator 版本：1.8.1

目标平台：

详细报错信息，包含调用堆栈：

重现方式：

之前哪个版本是正常的 ：

手机型号 ：

手机浏览器 ：

编辑器操作系统 ：win10

编辑器之前是否有其它报错 ：

出现概率：

额外线索：

Error: Compile failed. The log file path [ C:\Users\Administrator.CocosCreator\logs\native.log ]
at ChildProcess.handleChildProcess (D:\CocosCreator\resources\app.asar\editor\core\native-utils.js:1:20297)
at ChildProcess.e.on (D:\CocosCreator\resources\app.asar\editor\core\native-utils.js:1:7685)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:194:7)
at maybeClose (internal/child_process.js:899:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

native.log文件内容

编译模式：release
使用 Eclipse 工程：E:\cocos\jsmj\ddmj_20161230\client\build\jsb-default\frameworks\runtime-src\proj.android
正在执行：’“D:\android-sdk-windows\tools\android” update project -t android-23 -p E:\cocos\jsmj\ddmj_20161230\client\build\jsb-default\frameworks\runtime-src\proj.android’

Updated project.properties
Updated local.properties
Updated file E:\cocos\jsmj\ddmj_20161230\client\build\jsb-default\frameworks\runtime-src\proj.android\proguard-project.txt
正在执行：’“D:\android-sdk-windows\tools\android” update lib-project -p E:\cocos\jsmj\ddmj_20161230\client\build\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java -t android-23’

Updated project.properties
Updated local.properties
Updated file E:\cocos\jsmj\ddmj_20161230\client\build\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\proguard-project.txt
正在执行 ndk-build…
NDK 编译模式：release
正在执行：’“D:\android\android-ndk-r10e\ndk-build” -C E:\cocos\jsmj\ddmj_20161230\client\build\jsb-default\frameworks\runtime-src\proj.android -j3 APP_ABI=“armeabi” NDK_MODULE_PATH=E:\cocos\jsmj\ddmj_20161230\client\build\jsb-default\frameworks\cocos2d-x;E:\cocos\jsmj\ddmj_20161230\client\build\jsb-default\frameworks\cocos2d-x\cocos;E:\cocos\jsmj\ddmj_20161230\client\build\jsb-default\frameworks\cocos2d-x\external NDK_TOOLCHAIN_VERSION=4.9’

Android NDK: WARNING: APP_PLATFORM android-21 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml

make.exe: Leaving directory `E:/cocos/jsmj/ddmj_20161230/client/build/jsb-default/frameworks/runtime-src/proj.android’
正在生成 apk 文件…
正在执行：’“D:\android\apache-ant-1.9.5\bin\ant” clean release -f E:\cocos\jsmj\ddmj_20161230\client\build\jsb-default\frameworks\runtime-src\proj.android\build.xml -Dsdk.dir=“D:\android-sdk-windows”’

Buildfile: E:\cocos\jsmj\ddmj_20161230\client\build\jsb-default\frameworks\runtime-src\proj.android\build.xml

-check-env:
[checkenv] Android SDK Tools Revision 25.2.5
[checkenv] Installed at D:\android-sdk-windows

-setup:
[echo] Project Name: ccdrmj
[gettype] [Fatal Error] :34 元素类型 “application” 必须由匹配的结束标记 “” 终止。

BUILD FAILED
D:\android-sdk-windows\tools\ant\build.xml:407: org.xml.sax.SAXParseException; lineNumber: 34; columnNumber: 11; 元素类型 “application” 必须由匹配的结束标记 “” 终止。
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:348)
at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:466)
at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:513)
at com.android.ant.GetTypeTask.execute(GetTypeTask.java:85)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:853)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
--------------- linked to ------------------
javax.xml.xpath.XPathExpressionException: org.xml.sax.SAXParseException; lineNumber: 34; columnNumber: 11; 元素类型 “application” 必须由匹配的结束标记 “” 终止。
at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:471)
at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:513)
at com.android.ant.GetTypeTask.execute(GetTypeTask.java:85)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:853)
at org.apache.tools.ant.Main.startAnt(Main.java:235)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:285)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:112)
Caused by: org.xml.sax.SAXParseException; lineNumber: 34; columnNumber: 11; 元素类型 “application” 必须由匹配的结束标记 “” 终止。
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:257)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:348)
at com.sun.org.apache.xpath.internal.jaxp.XPathImpl.evaluate(XPathImpl.java:466)
… 18 more

Total time: 1 second
执行命令出错，返回值：1。

阅读整个主题