如何将gradle库依赖项添加到codenameone项目中 [英] How to add gradle library dependency to a codenameone project

查看:147
本文介绍了如何将gradle库依赖项添加到codenameone项目中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常在android中我可以编辑build.gradle文件并将我的编译依赖项放置如下:

Normally in android I can just edit the build.gradle file and place my compile dependencies like this:

dependencies {
    compile 'com.android.support:support-v4:23.+'
    compile 'com.google.android.gms:play-services-plus:8.3.0'
    compile 'com.google.android.gms:play-services-auth:8.3.0'
    compile 'com.google.android.gms:play-services-base:8.3.0'
 } 

如何在codenameone项目中添加编译依赖项?

How can I add a compile dependency in a codenameone project?

推荐答案

生成的项目使用jcenter()存储库。
为了添加编译依赖项,您需要使用'gradleDependencies'构建提示,例如:

The generated project utilizes the jcenter() repository. In order to add a compile dependency you will need to use the 'gradleDependencies' build hint, for example:

gradleDependencies=" compile 'com.facebook.android:facebook-android-sdk:4.7.0'\n"

这篇关于如何将gradle库依赖项添加到codenameone项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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