如何创建一个从机器人工作室的一个jar文件 [英] how to create a jar file from android studio
问题描述
我已经机器人工作室的一个相当最新版本,我创建它基本上应该是一个库中的项目下的一个模块,当我盖了,它创建了一个.aar的文件,我想是的.jar文件,因为这个库应该是和Eclipse使用。
I have a fairly latest version of android studio, I have created a module under a project which is basically supposed to be a library, when I build it, it creates an ".aar" file , what I want is .jar file as this library is supposed to be used with eclipse as well.
该库包含活动为好,有没有办法通过它我可以创造一个.jar文件,我可以在Eclipse中以及Android的工作室?
The library contains activity as well, is there any way by which I can create a .jar file which I can use on Eclipse as well Android Studio ?
我已经创造了这个模块,并试图构建,因此它产生的.aar文件,而不是一个.jar文件。
I have already created this module and tried building , as a result it generated .aar file and not a .jar file.
推荐答案
目前摇篮基础构建犯规似乎允许创建罐机器人工作室,我决定去Intelij有必要的选择和做什么,我想,我可以使用社区版。
Currently gradle based builds doesnt seems to be allowing to create jar with android studio, I decided to go for Intelij it has necessary option and does what i want , i can use community edition.
***更新**** 即使是Intelij与资源所产生的罐子不工作,可见其不容易与资源罐子,所以决定选择.aar和希望Eclipse还得到了.aar支持时,摇篮支持的土地那里,因为这是我最关心的。
***Update**** Even the jar produced by Intelij with resources don't work , obviously its not easy to have a jar with resource , so decided to opt for .aar and hoping that Eclipse also gets support for .aar when gradle supports lands there, as that was my main concern.
这篇关于如何创建一个从机器人工作室的一个jar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!