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.
相关问题
- Could not read entry … from cache taskArtifacts.bi
- Non-static method isGooglePlayServicesAvailable an
- Include pom.xml in Jar with gradle
- Android studio 2.2.0-rc1 gradle plugin error
- Gradle vs Compiler
相关文章
- IDEA2020 安装maven 插件后,springboot程序 SpringBootApplic
- pom文件中的插件定义
- pom.xml中的project为何报红
- Hibernate Tutorial - Where to put Mapping File?
- Android virtual device manager crashes with “doubl
- Cannot use org.jvnet.jax-ws-commons.jaxws-maven-pl
- What are the `^let` annotations in Android Studio
- Android Studio doesn't display logs by package
You never need both. JCenter is a superset of Maven Central, and it should suffice for all the dependencies.
I am with JFrog, the company behind Bintray and [artifactory], see my profile for details and links.
and for maven just add to your pom.xml:
Yes you can use both repositories even though you don't need both unless you want to work offline.
Go to your build.gradle file in your app folder and type the following code: