我在eclipse中设计了一个android项目,但是它需要一个aar格式的库文件。

Extract the AAR file using standard zip extract
Find the classes.jar file in the extracted files
Rename it to your liking and use the wanted jar file in your project

但是它还没有解决,有没有其他方法来进行转换,或者有没有方法将aar文件作为库项目添加到eclipse adt中?

最佳答案

有没有办法将aar文件作为库项目添加到eclipse adt
不,除非您切换到在eclipse构建中使用maven。
有没有其他方法来转换
您必须尝试将aar转换为或多或少正常的android库项目。This Stack Overflow answer提供配方,this blog post of mine提供有关流程的更多信息。
不过,将eclipse与adt插件结合使用已不再是一个好主意,因为对它的官方支持将在今年年底结束。

09-04 09:40
查看更多