cocos creater 发布成安卓出错了Error: Compile failed. The log file path [ C:\Users\Administrator\.CocosCreator\logs\native.log ]

正在执行:’“C:\Users\Administrator\Desktop\222\apache-ant-1.10.1\bin\ant” clean release -f C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\build.xml -Dsdk.dir=“C:\Users\Administrator\Desktop\222\Android-SDK”’

Buildfile: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\build.xml

-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at C:\Users\Administrator\Desktop\222\Android-SDK

-setup:
[echo] Project Name: Tuyatiaoyue
[gettype] Project Type: Application

-pre-clean:

clean:
[delete] Deleting directory C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin
[delete] Deleting directory C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\gen
[getlibpath] Library dependencies:
[getlibpath]
[getlibpath] ------------------
[getlibpath] Ordered libraries:

nodeps:

-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at C:\Users\Administrator\Desktop\222\Android-SDK

-setup:
[echo] Project Name: cocos2dxandroid
[gettype] Project Type: Android Library

-pre-clean:

clean:
[delete] Deleting directory C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\bin
[delete] Deleting directory C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\gen

-set-mode-check:

-set-release-mode:

-release-obfuscation-check:
[echo] proguard.config is ${proguard.config}

-pre-build:

-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at C:\Users\Administrator\Desktop\222\Android-SDK

-setup:
[echo] Project Name: Tuyatiaoyue
[gettype] Project Type: Application

-build-setup:
[getbuildtools] Using latest Build Tools: 22.0.1
[echo] Resolving Build Target for Tuyatiaoyue…
[gettarget] Project Target: Android 2.3.3
[gettarget] API level: 10
[echo] ----------
[echo] Creating output directories if needed…
[mkdir] Created dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin
[mkdir] Created dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\res
[mkdir] Created dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\rsObj
[mkdir] Created dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\rsLibs
[mkdir] Created dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\gen
[mkdir] Created dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\classes
[mkdir] Created dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for Tuyatiaoyue…
[dependency] Ordered libraries:
[dependency] C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java
[dependency]
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.
[echo] ----------
[echo] Building Libraries with ‘release’…

nodeps:

-set-mode-check:

-set-release-mode:

-release-obfuscation-check:
[echo] proguard.config is ${proguard.config}

-pre-build:

-check-env:
[checkenv] Android SDK Tools Revision 24.4.1
[checkenv] Installed at C:\Users\Administrator\Desktop\222\Android-SDK

-setup:
[echo] Project Name: cocos2dxandroid
[gettype] Project Type: Android Library

-build-setup:
[getbuildtools] Using latest Build Tools: 22.0.1
[echo] Resolving Build Target for cocos2dxandroid…
[gettarget] Project Target: Android 2.3.3
[gettarget] API level: 10
[echo] ----------
[echo] Creating output directories if needed…
[mkdir] Created dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\bin
[mkdir] Created dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\bin\res
[mkdir] Created dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\bin\rsObj
[mkdir] Created dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\bin\rsLibs
[mkdir] Created dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\gen
[mkdir] Created dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\bin\classes
[mkdir] Created dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for cocos2dxandroid…
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files…
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files…
[echo] ----------
[echo] Handling Resources…
[aapt] Generating resource IDs…
[echo] ----------
[echo] Handling BuildConfig class…
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
[javac] Compiling 27 source files to C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\bin\classes
[javac] 警告: [options] 源值1.5已过时, 将在未来所有发行版中删除
[javac] 警告: [options] 目标值1.5已过时, 将在未来所有发行版中删除
[javac] 警告: [options] 要隐藏有关已过时选项的警告, 请使用 -Xlint:-options。
[javac] 注: 某些输入文件使用了未经检查或不安全的操作。
[javac] 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
[javac] 3 个警告
[echo] Creating library output jar file…
[jar] Building jar: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\bin\classes.jar

-post-compile:

-obfuscate:

-dex:
[echo] Library project: do not convert bytecode…

-crunch:
[crunch] Crunching PNG Files in source dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\res
[crunch] To destination dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\bin\res
[crunch] Crunched 0 PNG files to update cache

-package-resources:
[echo] Library project: do not package resources…

-package:
[echo] Library project: do not package apk…

-post-package:

-release-prompt-for-password:

-release-nosign:
[echo]
[propertyfile] Creating new property file: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\bin\build.prop
[propertyfile] Updating property file: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\bin\build.prop
[propertyfile] Updating property file: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\bin\build.prop
[propertyfile] Updating property file: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\bin\build.prop

-release-sign:

-post-build:

release:

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files…
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files…
[echo] ----------
[echo] Handling Resources…
[aapt] Generating resource IDs…
[echo] ----------
[echo] Handling BuildConfig class…
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
[javac] Compiling 4 source files to C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\classes
[javac] 警告: [options] 源值1.5已过时, 将在未来所有发行版中删除
[javac] 警告: [options] 目标值1.5已过时, 将在未来所有发行版中删除
[javac] 警告: [options] 要隐藏有关已过时选项的警告, 请使用 -Xlint:-options。
[javac] 3 个警告

-post-compile:

-obfuscate:

-dex:
[dex] input: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\classes
[dex] input: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\bin\classes.jar
[dex] input: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\libs\libPluginProtocol.jar
[dex] input: C:\Users\Administrator\Desktop\222\Android-SDK\tools\support\annotations.jar
[dex] input: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\libs\com.android.vending.expansion.zipfile.jar
[dex] input: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\libs\httpclient-4.4.1.1.jar
[dex] input: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\libs\android-async-http-1.4.9.jar
[dex] Pre-Dexing C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\bin\classes.jar -> classes-50fbee09f780d1f981e5a82c309a7eb2.jar
[dex] Pre-Dexing C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\libs\libPluginProtocol.jar -> libPluginProtocol-5b9f9882b56c6d3ea3432e89e1ebbe35.jar
[dex] Pre-Dexing C:\Users\Administrator\Desktop\222\Android-SDK\tools\support\annotations.jar -> annotations-4acd4065f37d49916c0a517263e23922.jar
[dex] Pre-Dexing C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\libs\com.android.vending.expansion.zipfile.jar -> com.android.vending.expansion.zipfile-bdc38ed614db9936e5950921a55c2ee9.jar
[dex] Pre-Dexing C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\libs\httpclient-4.4.1.1.jar -> httpclient-4.4.1.1-e7bd92c9bb6de0ea4e35658bfb172435.jar
[dex] Pre-Dexing C:\Users\Administrator\Desktop\222\jsb-default\frameworks\cocos2d-x\cocos\platform\android\java\libs\android-async-http-1.4.9.jar -> android-async-http-1.4.9-0beef6355910bab971ba36e1cee409df.jar
[dex] Converting compiled files and external libraries into C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\classes.dex…
[dx] Merged dex A (9 defs/7.7KiB) with dex B (124 defs/139.6KiB). Result is 133 defs/174.9KiB. Took 0.1s
[dx] Merged dex A (133 defs/174.9KiB) with dex B (123 defs/94.1KiB). Result is 256 defs/326.5KiB. Took 0.1s
[dx] Merged dex A (256 defs/326.5KiB) with dex B (2 defs/1.1KiB). Result is 258 defs/419.0KiB. Took 0.0s
[dx] Merged dex A (258 defs/419.0KiB) with dex B (4 defs/15.8KiB). Result is 262 defs/599.0KiB. Took 0.1s
[dx] Merged dex A (262 defs/599.0KiB) with dex B (797 defs/844.3KiB). Result is 1059 defs/1932.9KiB. Took 0.1s
[dx] Result compacted from 2920.5KiB to 1159.2KiB to save 1761.3KiB
[dx] Merged dex A (1059 defs/1932.9KiB) with dex B (61 defs/106.4KiB). Result is 1120 defs/1159.2KiB. Took 0.2s

-crunch:
[crunch] Crunching PNG Files in source dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\res
[crunch] To destination dir: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\res
[crunch] Processing image to cache: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\res\drawable-hdpi\icon.png => C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\res\drawable-hdpi\icon.png
[crunch] (processed image to cache entry C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\res\drawable-hdpi\icon.png: 67% size of source)
[crunch] Processing image to cache: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\res\drawable-ldpi\icon.png => C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\res\drawable-ldpi\icon.png
[crunch] (processed image to cache entry C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\res\drawable-ldpi\icon.png: 0% size of source)
[crunch] Processing image to cache: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\res\drawable-mdpi\icon.png => C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\res\drawable-mdpi\icon.png
[crunch] (processed image to cache entry C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\res\drawable-mdpi\icon.png: 53% size of source)
[crunch] Processing image to cache: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\res\drawable\plugin_btn_close.png => C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\res\drawable\plugin_btn_close.png
[crunch] (processed image to cache entry C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\res\drawable\plugin_btn_close.png: 0% size of source)
[crunch] Processing image to cache: C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\res\drawable\plugin_ui_ad.png => C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\res\drawable\plugin_ui_ad.png
[crunch] (processed image to cache entry C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\bin\res\drawable\plugin_ui_ad.png: 0% size of source)
[crunch] Crunched 5 PNG files to update cache
[crunch] C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\res\drawable-hdpi\icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[crunch] C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\res\drawable-ldpi\icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
[crunch] C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\res\drawable-mdpi\icon.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

-package-resources:
[aapt] Creating full resource package…
[aapt] C:\Users\Administrator\Desktop\222\jsb-default\frameworks\runtime-src\proj.android\assets\res\import\e2\e2e30d98-8ee3-4014-a3a3-4b3e6151c42d\米芾体_0.ttf: error: Invalid filename. Unable to add.

BUILD FAILED
C:\Users\Administrator\Desktop\222\Android-SDK\tools\ant\build.xml:928: The following error occurred while executing this line:
C:\Users\Administrator\Desktop\222\Android-SDK\tools\ant\build.xml:946: null returned: 1

Total time: 29 seconds
执行命令出错,返回值:1。

应该是不能使用中文 文件名 换成英文名试试

看错误 log 啊,不是告诉你 invalide filename 了吗? 不要使用中文作为字体的名字。。。