图书馆加入Android Studio中0.2.8 [英] Add library in Android Studio 0.2.8

查看:134
本文介绍了图书馆加入Android Studio中0.2.8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我还是一个真正的初学者,我需要一个库添加到我的项目在Android Studio中,从我所看到的网络上的答案,你应该在文件 - 项目结构 - 模块。当我打开的项目结构我只有平台设置 - Android SDK中的选项

Hello I'm still a real beginner, and I'd need to add a library to my project in android studio, from the answers I've seen on the web, you should go in file - project structure - modules. When I open project structure I only have platform settings - android sdk as option.

有没有什么从第一个版本的变化?

Has anything changed from the first versions?

感谢

推荐答案

只要按照几个步骤,以在Android Studio中添加的库文件。

Just follow the few steps to add library files in android studio.

1)在资源管理器中,单击项目 - >程序 - >库 - >(粘贴您的jar文件)

1)In Explorer, Click Project -> app -> libs -> (paste your jar file).

2)在资源管理器中,然后在Android - >摇篮脚本 - >的build.gradle(模块:应用)[双击它]

2)In Explorer, Click Android -> Gradle Scripts -> build.gradle(Module:app)[Double click it].

3)在依存{}添加以下code

3)In the Dependencies { } add the following code

编译文件(库/您的文件name.jar')

compile files('libs/your file name.jar')

4)建立和清理项目。

4) Build and clean the project .

现在你的jar文件添加成功。

Now your jar file is successfully added.

这篇关于图书馆加入Android Studio中0.2.8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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