ant打包游戏时报错

================================== 1 ======================

doantbuild:
[taskdef] Could not load definitions from resource anttasks.properties. It cou
ld not be found.

-set-mode-check:

-set-release-mode:

BUILD FAILED
F:\source\mmd\phoneclient\_ide_android\antbuild\commonbuild.xml:81: The followin
g error occurred while executing this line:
F:\source\mmd\phoneclient\_ide_android\antbuild\commonbuild.xml:195: The followi
ng error occurred while executing this line:
F:\source\mmd\phoneclient\_ide_android\antbuild\commonbuild.xml:447: The followi
ng error occurred while executing this line:
F:\source\mmd\phoneclient\_ide_android\antbuild\build.xml:1102: Problem: failed
to create task or type xpath
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.


更改android sdk目录 /tools/lib
复制 ant-tasks.jar文件
改名 anttasks.jar

================================== 2 ======================

[gettarget] Project Target: Android 4.2.2
[gettarget] API level: 17
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: F:\source\mmd\phoneclient\_ide_android\qianyouuc\bin
[mkdir] Created dir: F:\source\mmd\phoneclient\_ide_android\qianyouuc\bin\re
s
[mkdir] Created dir: F:\source\mmd\phoneclient\_ide_android\qianyouuc\bin\cl
asses
[mkdir] Created dir: F:\source\mmd\phoneclient\_ide_android\qianyouuc\bin\de
xedLibs
[echo] ----------
[echo] Resolving Dependencies for uc...

BUILD FAILED
F:\source\mmd\phoneclient\_ide_android\antbuild\commonbuild.xml:82: The followin
g error occurred while executing this line:
F:\source\mmd\phoneclient\_ide_android\antbuild\commonbuild.xml:196: The followi
ng error occurred while executing this line:
F:\source\mmd\phoneclient\_ide_android\antbuild\commonbuild.xml:448: The followi
ng error occurred while executing this line:
F:\source\mmd\phoneclient\_ide_android\antbuild\build.xml:571: Missing attribute
buildToolsFolder


游戏原来打包时使用的 ADT21
我使用的是 ADT23
替换成 21 的build.xml文件就好了


================================== 3 ======================
[aapt] invalid resource directory name: F:\source\mmd\phoneclient\_ide_andr
oid\prjcommon\basesdk\bin\res crunch

直接删除 basesdk\bin\ 下的文件


================================== 4 ======================
[echo] Resolving Dependencies for zuixiancenter...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.
[echo] ----------
[echo] Building Libraries with 'release'...

BUILD FAILED
F:\liwe_game_09prj\svn\zx_phoneclient\zuimeiren\_ide_android\antbuild\commonbuil
d.xml:81: The following error occurred while executing this line:
F:\liwe_game_09prj\svn\zx_phoneclient\zuimeiren\_ide_android\antbuild\commonbuil
d.xml:195: The following error occurred while executing this line:
F:\liwe_game_09prj\svn\zx_phoneclient\zuimeiren\_ide_android\antbuild\commonbuil
d.xml:447: The following error occurred while executing this line:
F:\liwe_game_09prj\svn\zx_phoneclient\zuimeiren\_ide_android\antbuild\build.xml:
595: Invalid file: F:\liwe_game_09prj\svn\zx_phoneclient\zuimeiren\_ide_android\
3rdsdk\shenhai\ShSdkResProject\build.xml

A: 第三方工程的BUILD文件缺少 <property file="../../../antbuild/ant.properties" /> 此路径要检查正确
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值