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

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

    震惊

    震惊

编辑推荐
配置ANDROID_HOME环境变量 很简单的ant打包我们只需要利用eclipse自带的ant插件即可实现,首先配置A
通常我们习惯用eclipse来开发Android程序,它会自动帮我们打包当前的应用程序。如果在Navigator视图
大家好,今天来分享一下如何使用ANT打包Android应用。 通常我们习惯用eclipse来开发Android程序,它
Ant自动打包 博客分类: Android ant android ant打包 批量打包 Ant使用 在ant的官网http://ant.apa
一、Ant含义 Ant本身就是一种流程脚本引擎,用于自动化调用程序完成项目的编译、打包、测试等。ANT
方法一 : 1) 右键点击打包所用的文件(build.xxx.xml),选择Run As à 3.Ant Build… 2) 进入编辑配置
转自:http://blog.csdn.net/liuhe688/article/details/6679879 大家好,今天来分享一下如何使用ANT
最近在维护一个以前的项目,发现以前发布的时候居然都是手动发布,项目中用到第三方的Jar包,每次要
Ant使用 在ant的官网http://ant.apache.org进行下载后apache-ant-1.8.2包 解压(存放的路径不要有中
Ant 一.简介 Ant,构建,打包,编译自动化工具。 二.下载地址 http://ant.apache.org/ 三.例子 图1.1 项
版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号