ant打包游戏时报错

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

doantbuild:

[taskdef]Couldnotloaddefinitionsfromresourceanttasks.properties.Itcou

ldnotbefound.

-set-mode-check:

-set-release-mode:

BUILDFAILED

F:\source\mmd\phoneclient\_ide_android\antbuild\commonbuild.xml:81:Thefollowin

gerroroccurredwhileexecutingthisline:

F:\source\mmd\phoneclient\_ide_android\antbuild\commonbuild.xml:195:Thefollowi

ngerroroccurredwhileexecutingthisline:

F:\source\mmd\phoneclient\_ide_android\antbuild\commonbuild.xml:447:Thefollowi

ngerroroccurredwhileexecutingthisline:

F:\source\mmd\phoneclient\_ide_android\antbuild\build.xml:1102:Problem:failed

tocreatetaskortypexpath

Cause:Thenameisundefined.

Action:Checkthespelling.

Action:Checkthatanycustomtasks/typeshavebeendeclared.

Action:Checkthatany<presetdef>/<macrodef>declarationshavetakenplace.

更改androidsdk目录/tools/lib

复制ant-tasks.jar文件

改名anttasks.jar

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

[gettarget]ProjectTarget:Android4.2.2

[gettarget]APIlevel:17

[echo]----------

[echo]Creatingoutputdirectoriesifneeded...

[mkdir]Createddir:F:\source\mmd\phoneclient\_ide_android\qianyouuc\bin

[mkdir]Createddir:F:\source\mmd\phoneclient\_ide_android\qianyouuc\bin\re

s

[mkdir]Createddir:F:\source\mmd\phoneclient\_ide_android\qianyouuc\bin\cl

asses

[mkdir]Createddir:F:\source\mmd\phoneclient\_ide_android\qianyouuc\bin\de

xedLibs

[echo]----------

[echo]ResolvingDependenciesforuc...

BUILDFAILED

F:\source\mmd\phoneclient\_ide_android\antbuild\commonbuild.xml:82:Thefollowin

gerroroccurredwhileexecutingthisline:

F:\source\mmd\phoneclient\_ide_android\antbuild\commonbuild.xml:196:Thefollowi

ngerroroccurredwhileexecutingthisline:

F:\source\mmd\phoneclient\_ide_android\antbuild\commonbuild.xml:448:Thefollowi

ngerroroccurredwhileexecutingthisline:

F:\source\mmd\phoneclient\_ide_android\antbuild\build.xml:571:Missingattribute

buildToolsFolder

游戏原来打包时使用的ADT21

我使用的是ADT23

替换成21的build.xml文件就好了

==================================3======================

[aapt]invalidresourcedirectoryname:F:\source\mmd\phoneclient\_ide_andr

oid\prjcommon\basesdk\bin\rescrunch

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

==================================4======================

[echo]ResolvingDependenciesforzuixiancenter...

[dependency]Librarydependencies:

[dependency]

[dependency]------------------

[dependency]Orderedlibraries:

[dependency]

[dependency]------------------

[dependency]API<=15:Addingannotations.jartotheclasspath.

[echo]----------

[echo]BuildingLibrarieswith'release'...

BUILDFAILED

F:\liwe_game_09prj\svn\zx_phoneclient\zuimeiren\_ide_android\antbuild\commonbuil

d.xml:81:Thefollowingerroroccurredwhileexecutingthisline:

F:\liwe_game_09prj\svn\zx_phoneclient\zuimeiren\_ide_android\antbuild\commonbuil

d.xml:195:Thefollowingerroroccurredwhileexecutingthisline:

F:\liwe_game_09prj\svn\zx_phoneclient\zuimeiren\_ide_android\antbuild\commonbuil

d.xml:447:Thefollowingerroroccurredwhileexecutingthisline:

F:\liwe_game_09prj\svn\zx_phoneclient\zuimeiren\_ide_android\antbuild\build.xml:

595:Invalidfile:F:\liwe_game_09prj\svn\zx_phoneclient\zuimeiren\_ide_android\

3rdsdk\shenhai\ShSdkResProject\build.xml

A:第三方工程的BUILD文件缺少<propertyfile="../../../antbuild/ant.properties"/>此路径要检查正确

相关推荐