你只能把library项目clone下来添加到你的项目中。
然后在gradle中添加
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile 'com.github.chrisbanes.actionbarpulltorefresh:extra-abc:+'
}
一般只要在build.gradle中标签dependencies添加开源库,如下
dependencies {
debugcompile 'com.squareup.leakcanary:leakcanary-android:1.3.1' // or 1.4-beta1
releasecompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1' // or 1.4-beta1
testcompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.3.1' // or 1.4-beta1
}
但是需要注意的是,应用中引用的仓库,如jcenter和mavencentral,有的开源库只在其中有,如果编译通不过,可以在这两个仓库切换试试
Photoshop|
Dreamweaver|
SVG|
WebGL|
Visual Studio|
PowerDesigner|
Eclipse|
Git|
Apache Ant|
Atom|
Composer|
CodeSmith|
Flex|
Gradle|
Maven|
Sublime Text3|
SVN|
Tableau|
Vim|
Chrome开发者工具|
OpenGL|
Unity|
Direct3D|
用户登录
还没有账号?立即注册
用户注册
投稿取消
| 文章分类: |
|
还能输入300字
上传中....
FXPYLY