无论是在Android的Studio中使用jcenter和mavenCentral [英] Using jcenter and mavenCentral both in Android Studio

查看:458
本文介绍了无论是在Android的Studio中使用jcenter和mavenCentral的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新来的Andr​​oid工作室。我用我的项目库。 Maven的中央已更新的Facebook的SDK版本,而我使用的库其余可在jcenter。我想知道,如果我们能够在我们的项目中使用这两个库。如果是的话,那怎么办,我需要它的gradle中的文件中定义,这样的工作室下载从正确的位置AAR。例如,任何将是有益的。

I am new to Android Studio. I am using libraries in my project. The maven central has updated version of facebook sdk, while rest of libraries I am using are available on jcenter. I want to know if we can use both these repositories in our project. If yes, then how do I need it to define in gradle file so that studio downloads aar from correct location. Any example would be helpful.

推荐答案

您永远两者都需要。 JCenter是Maven的中央的一个超集,它应该为所有的依赖是足矣。

You never need both. JCenter is a superset of Maven Central, and it should be suffice for all the dependencies.

我与 JFrog ,该公司背后的 Bintray [artifactory的] ,看到的我的详细信息和链接的个人资料

I am with JFrog, the company behind Bintray and [artifactory], see my profile for details and links.

这篇关于无论是在Android的Studio中使用jcenter和mavenCentral的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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