`

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" /> 此路径要检查正确
分享到:
评论

相关推荐

    ant 打包 java project 为ant

    NULL 博文链接:https://ljhjay.iteye.com/blog/1279610

    tag自定义标签

    简单易懂没什么 太难理解的代码好好学习研究

    错误归类学习.zip_ant脚本打包

    ant脚本打包的时候运行访问websrvice是报错

    ant 打包apk,无需android环境,在windows和Linux下

    使用时,需要把响应的压缩包解压到项目工程文件夹中,根据工程修改build.xml,ant就行了,apk在out文件夹下,名字target.apk,64位Linux下,需要有32位环境,既是执行:sudo apt-get install ia32-libs。否则会报错,...

    ant打包提示找不到文件解决办法-附件资源

    ant打包提示找不到文件解决办法-附件资源

    使用ant将SVN版本信息打包进jar包

    近几天在做一个小项目,需要使用ant编译并能够将SVN版本信息打包进所编译出的jar包,为此查了很多资料,总结如下: 1.运行环境需要安装ant并配置好环境变量(此点很重要,Eclipse自带的ant某些功能会受限报错) 2....

    解决proguard混淆报错-Proguard5.1

    proguard混淆jar包提示错误:Unknown verification type [*] in stack map frame 解决方案:找到proguard源码中proguard\src\proguard\classfile\...然后重新ant打包proguard。资源已经处理(源码+proguard.jar包)。

    ant-design-vue按需加载的坑的解决

    目前项目中less版本为3.0.4,所以在编译中会报错 解决办法 第一种办法,在vue.config.js中添加如下配置 css: { loaderOptions: { less: { javascriptEnabled: true } } } 第二种办法就是把less的版本降到3.0...

    网狐荣耀版开发使用常见问题解答

    九、eclipse加载荣耀版时红叉an outline is not available报错的处理 很多时候这些错误不是程序问题造成,而是环境问题造成。这个主要是第三方的类库与cocos2d-x的支持文件没有加载的原因造成,加载了就可以正常...

    Angular中使用ng-zorro图标库部分图标不能正常显示问题

    在ng-alain中,使用ng-zorro图标库,发现部分能正常显示,部分并不能显示,在控制台同时发现出错报错。 ERROR Error: [@ant-design/icons-angular]: the icon redo-o does not exist or is not registered. at ...

    解决vue net :ERR_CONNECTION_REFUSED报错问题

    我是因为频繁的更换网络,导致这样的。 然后我回忆了一下。之前每次改ip都会把Package.json 中的 –host 0.0.0.0改成我的固定ip,由于改来改去太麻烦了,我就设置为0.0.0.0 所以喜提上图的一排get请求 ...

    Dex65536分包相关工具

    Eclipse超详细解决安卓Dex65536报错,分包方法 原理其实就是将不重要的jar包集中用ant打包成一个jar包,再用SDK自带工具dx.bat去将这个jar包编译成classes2.dex文件,在APP启动后动态加载这个分包dex

    【JTHarness4_4_0】【需要用到的包】

    如果没有这个包,运行时会报错。 JDK version 1.5 或更高 http://java.sun.com/javase/index.jsp 这个就不用说了。一般都用1.6 Java Communications 3.0 API 官网提供的地址下不了。我是自己从CSDN上下载的 在以下...

    my-vue3-plugin:使用 vue3 版本开发 chrome 浏览器插件

    my-vue3-plugin使用 vue3 版本进行 chrome 浏览器插件开发此项目版本@vue/cli 4.5.7yarn 1.22.10node_modules 安装yarn install如果遇到问题报错,可以查看 这篇文章插件开发yarn run watch插件打包yarn run build...

Global site tag (gtag.js) - Google Analytics