如何添加-0选项在Eclipse中AAPT? [英] How to add -0 option to aapt in Eclipse?

查看:603
本文介绍了如何添加-0选项在Eclipse中AAPT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我现在这个问题已经弹出编了很多,但我无法找到一个真正的解决办法。该AAPT需要太多的时间COM pressing图像,这是时间对于大型项目的浪费。如果您更改* .xml文件的东西将采取年龄。

I now this question has pop-ed up a lot but I couldn't find a real solution. The aapt takes too much time compressing images and that is waste of time for large projects. It will take ages if you change something in the *.xml file.

任何解决方案添加-0优化选项的Eclipse构建?

Any solution to add the -0 optimization option to the Eclipse build?

非常感谢。

推荐答案

有没有办法传递参数从日食到AAPT(至少我不知道这件事)。

There is no way to pass parameters to aapt from eclipse (at least I'm not aware about it).

但还有另一种解决您的问题,您可以使用ADT12推出的新功能:更好地控制ADT构建过程。这不会加快编制,但资源的编辑后,将最大限度地减少资源的重新编译的数量。

But there is another solution to your problem, you can use new feature introduced in ADT12: Finer Control Over ADT Build Process. This will not speed up compilation, but will minimize number of re-compilation of resources after resource edits.

另外,也可以创建代理脚本/程序,替换 AAPT 并调用原始的 AAPT 可执行一个额外的参数 -0 。这实际上允许更精细的控制如何Eclipse使用 AAPT ,但可能会影响其他项目的建设。

As another solution, you can create proxy script/program that substitutes aapt and calls original aapt executable with one extra parameter -0. This will actually allow for much finer control over how eclipse uses aapt, but may influence build of other projects.

这篇关于如何添加-0选项在Eclipse中AAPT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆