AAR在Eclipse ANT项目中 [英] AAR in Eclipse ANT project

查看:157
本文介绍了AAR在Eclipse ANT项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在eclipse ant项目中使用.aar库(有资源)?我知道没有简单的方法来使用.aar格式,就像在毕业时一样,但是也许有一些解决方法来解压缩并手动导入?

解决方案

确实,aar文件只是存档文件。所以你可以解压缩它,并找到jar文件以及ressources文件。这个问题已经在这里被部分回答了:



https:// stackoverflow。 com / a / 21485222/1836870



如果要在jar中获取资源,可以像在这个答案中建议的那样尝试重新打包: p>

https://stackoverflow.com/a/21417599/1836870


is there any way to use .aar library (with resources) in eclipse ant project? I know that there is no simply way to use .aar format like in gradle, but maybe there is some workaround to unzip it and import it manually?

解决方案

Indeed, aar files are just archive files. So you can unzip it and find jar files along with ressources files. The question have already been partially answered here:

https://stackoverflow.com/a/21485222/1836870

If you want to get the ressources inside your jar, you could try repackage like it's suggested in this answer:

https://stackoverflow.com/a/21417599/1836870

这篇关于AAR在Eclipse ANT项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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