android studio导入第三方类库的方法
2015-06-26 11:01
399 查看
导入百度钱包的类库
下项目导航栏右键-open module setting
点击左上角加号,把要添加的百度类库导入的模块
在settings.gradle中
include ‘:baiduWalletLib’
include ‘:app’
其中,app为你的项目,另外一个就是百度的库文件
最后,也是最关键的,打开build.gradle(Module:app),
在dependencies {
compile project(‘:baiduWalletLib’)
}
也就是声明你自己的项目在编译的时候依赖那个库的编译。
最后参考百度支付的demo文件进行项目移植调用百度钱包支付。
下项目导航栏右键-open module setting
点击左上角加号,把要添加的百度类库导入的模块
在settings.gradle中
include ‘:baiduWalletLib’
include ‘:app’
其中,app为你的项目,另外一个就是百度的库文件
最后,也是最关键的,打开build.gradle(Module:app),
在dependencies {
compile project(‘:baiduWalletLib’)
}
也就是声明你自己的项目在编译的时候依赖那个库的编译。
最后参考百度支付的demo文件进行项目移植调用百度钱包支付。
相关文章推荐
- AndroidStudio之NDK与JNI配置详解
- 记录些Android Studio快捷键
- android studio 使用 genymotion(DDMS不能识别解决办法)
- Android b6c5 Studio之版本管理工具Git (图文教程)
- 在 Android Studio 中修改包名所遇到的坑
- 『Android/Java』Android Studio XML Editor Preview Error:The following classes could not be found
- Android studio使用Gradle导入第三方开发包的方法
- 如何在Android Studio上集成SMSSDK
- [转载] Android Studio Rendering Problems "android.support.v7.internal.widget.ActionBarOverlayLayout"
- eclipse转手Android studio 要注意的地方
- ubuntu中解决android studio 不能输入中文
- 在Android Studio上搭建Robotium测试环境
- Android Studio中忽略目录不显示在Project文件列表中
- Android Studio导入uiautomator测试框架
- Android Studio新建没有ActionBar的Activity
- Ubuntu14.04搭建Android Studio
- Mac下修改Android Studio 所用的JDK版本
- Android Studio新手完全指引
- Android Studio分模块自动化构建实战