在 android studio 0.2.8 中导入外部库 [英] import external library in android studio 0.2.8

查看:34
本文介绍了在 android studio 0.2.8 中导入外部库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图将外部库导入我在 android studio 中的 android 项目,这里的许多答案都说可以从 settings 中的项目结构中的模块完成.但是由于 0.2.8 更新,项目结构中没有库和模块.我现在如何导入外部库?

I was trying to import external Library to my android project in android studio many answers here say it can be done from module in project structure in settings.But since the 0.2.8 update there is no library, module in project structure. how do i import external Library now?

也许这是 0.2.8 更新中的一个错误.不确定

maybe this is a bug in 0.2.8 update. not sure

推荐答案

步骤 1:选择项目 > 右键单击​​ > 打开模块设置 (F12) > 项目设置 > 单击模块.

Step 1: Select Project > Right Click > Open Module Settings (F12) > Projects Settings > Click Modules.

第 2 步:单击您的项目 > 您将看到 3 个选项卡:Sources/Path/Dependencies.第 3 步:选择依赖项选项卡.您将在范围"标题的右侧看到绿色的+"按钮.单击此按钮,它将允许您添加 Jars 和 libs.

Step 2: Click your Project > you will see 3 tabs : Sources/Path/Dependencies. Step 3 : Select Dependencies tab. You will see green '+' button to the right of 'Scope' title. Click on this and it will allow you to add Jars and libs.

PS:将添加的jars/libs的范围设为Compile

PS: make the scope of the added jars/libs as Compile

这篇关于在 android studio 0.2.8 中导入外部库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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