当前位置:首页 > 开发 > 移动开发 > 正文

ant打包游戏时报错

发表于: 2015-04-21   作者:伈吢塌哋   来源:转载   浏览:
摘要: ==================================  1  ====================== doantbuild:   [taskdef] Could not load definitions from resource anttasks.properties. It cou ld not be found. -set-
==================================  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" /> 此路径要检查正确

ant打包游戏时报错

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号