您的位置:首页 > 移动开发 > Android开发

Android Studio 如何引入jar包?

2014-10-27 10:32 351 查看
1.首先把需要用的jar包拷贝到app/libs目录下,比如拷入 picasso-2.3.4.jar

2.在app/build.gradle做如下操作

//在dependencies添加如下信息,然后编译即可

dependencies {

compile fileTree(dir: 'libs', include: ['*.jar'])

// You must install or update the Support Repository through the SDK manager to use this dependency.

compile files('libs/picasso-2.3.4.jar')

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: