简体   繁体   English

如何在android studio 0.1 Build 130.677228中创建AAR文件

[英]How can I create aar file in android studio 0.1 Build 130.677228

I have the older version of the android studio that when I launch it, in the bottom of the wizard window is written such a thing: 我有旧版本的android studio,当我启动它时,在向导窗口的底部写了这样的东西:

android studio 0.1 Build 130.677228, check for update now  

I updated android studio to newer version, But it can not run in my computer. 我将android studio更新为新版本,但是无法在我的计算机上运行。 But fortunately, the older version of the android studio runs in my computer well and the older version of the android studio is enough for me. 但幸运的是,旧版本的android studio可以很好地在我的计算机上运行,​​而旧版本的android studio足以满足我的需求。

Consider I created a new project in android studio(The same default project), and I want create aar file form my project. 考虑我在android studio中创建了一个新项目(相同的默认项目),并且我想从我的项目中创建aar文件。 Most of you use like me used the older version of the android studio before using the newer version. 你们大多数人像我一样使用旧版本的android studio,然后再使用新版本。 How can I create aar file in android studio 0.1 Build 130.677228? 如何在android studio 0.1 Build 130.677228中创建aar文件?

I had hold a talk about creating and using aar in pre Android Studio 1.x. 我曾经讨论过在Android Studio 1.x之前的版本中创建和使用aar。

You can view the slides here: http://de.slideshare.net/RenMertins/get-startedwithaar-pdfexportrem20141012 您可以在此处查看幻灯片: http : //de.slideshare.net/RenMertins/get-startedwithaar-pdfexportrem20141012

How does it work in short: 简而言之,它是如何工作的:

  1. Create a project with one library module 使用一个库模块创建一个项目
  2. call gradle asemble release 调用gradle组装释放
  3. go in the build folder and copy out the aar file 进入构建文件夹并复制aar文件

To use your aar in your own projects, create a local maven repository, copy in your aar and reference it over gradle in other android app project. 要在自己的项目中使用aar,请创建一个本地maven存储库,在aar中复制并在其他Android应用程序项目的gradle中引用它。

All described in my talk. 全部都在我的谈话中描述。 Have fun 玩得开心

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM