摘录

How to Include an External .aar File Using Gradle?

Zafer ŞevikFollow Feb 7, 2017

There are 2 ways to do that First Way: Using Android Studio Menu (this is not my favourite) File -> New -> New Module -> Import .jar/.aar and import your .aar.

Then in your project’s build.gradle (the one under ‘app’) add the following:

dependencies {  compile project(‘:Name-of-the-Project’) }

Clean Build after all the above steps.

With this approach, every .aar file you add, will be visible in your project hierarchy (like the libraries you create and maintain in project).

Second Way: By Creating libs Folder

点评

NULL

原文

点击这里查看原文

其它

本帖内容由21QA云收藏工具自动生成,欢迎使用。

系统消息 若觉得内容不错,请点击左上角的"赞"图标,以优化网站的内容呈现。 另外,请及时验证注册邮箱,否则收不到21QA发出的红包。 官方Q群:250203055

asked 14 Jun, 17:43

%E8%B7%AF%E4%BA%BA%E7%94%B2's gravatar image

路人甲
131547588659

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link: [text](http://url.com/ "title")
  • image: ![alt](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×828
×69
×5

question asked: 14 Jun, 17:43

question was seen: 28 times

last updated: 14 Jun, 17:43

powered by O*S*Q*A

粤ICP备14040061号-1