简体   繁体   中英

Android studio Gradle dependency library download url

I develop android applications via Android Studio. And I would like to use 3 party libraries but I am working in a safe network which blocks all the internet except few which are specified by IT admin. I do NOT want to work with offline gradle option (Settings -> Gradle -> offline work). I would like to use gradle as if I got internet. To do that I need know which url is required, and tell IT admin open this spesific url. My question is which link or links I require ?

EDIT:

 http://jcenter.bintray.com/ 

link above is accepted answer but also links below are required for gradle

 http://download.gradle.com
 http://services.gradle.com

 http://repo.jfrog.org

This depends on the repositories on which your 3'rd party libraries are hosted. The standard ones probably include Maven Central ( http://repo1.maven.org/maven2 ) and JCenter ( https://jcenter.bintray.com or http://jcenter.bintray.com/ ), and if you also use private repositories defined by a url (see example below) then you should include these as well.

Example for a private maven repository definition, taken from Gradle User Guide :

 repositories { maven { url "http://repo.mycompany.com/maven2" } } 

One last note - Maven Central and JCenter urls mentioned above are taken from Gradle User Guide .

我认为你必须在白名单中包含android工作室......白名单意味着,你的系统中应该有某些应用程序允许访问所有链接...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM