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 ?
我通过Android Studio开发Android应用程序。我想使用3方库,但我在一个安全的网络中工作,它阻止所有的互联网,除了IT管理员指定的少数几个。我不想使用离线gradle选项(设置 - > Gradle - >离线工作)。我想使用gradle就像我上网一样。要做到这一点,我需要知道哪个网址是必需的,并告诉IT管理员打开这个特定网址。我的问题是我需要哪些链接或链接?
EDIT:
http://jcenter.bintray.com/
link above is accepted answer but also links below are required for gradle
上面的链接是接受的答案,但以下链接是gradle所必需的
http://download.gradle.com
http://services.gradle.com
http://repo.jfrog.org
2 个解决方案
#1
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.
这取决于托管第3方图书馆的存储库。标准的可能包括Maven Central(http://repo1.maven.org/maven2)和JCenter(https://jcenter.bintray.com或http://jcenter.bintray.com/),如果你也使用由url定义的私有存储库(参见下面的示例),您也应该包含这些存储库。
Example for a private maven repository definition, taken from Gradle User Guide:
从Gradle用户指南中获取的私有maven存储库定义的示例:
repositories { maven { url "http://repo.mycompany.com/maven2" } }
One last note - Maven Central and JCenter urls mentioned above are taken from Gradle User Guide.
最后一点 - 上面提到的Maven Central和JCenter网址来自Gradle用户指南。
#2
I think u have to include the android studio in whitelist... whitelist means, there should have certain apps in your system which are allowed to visit all links...
我认为你必须在白名单中包含android工作室......白名单意味着,你的系统中应该有某些应用程序允许访问所有链接...
#1
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.
这取决于托管第3方图书馆的存储库。标准的可能包括Maven Central(http://repo1.maven.org/maven2)和JCenter(https://jcenter.bintray.com或http://jcenter.bintray.com/),如果你也使用由url定义的私有存储库(参见下面的示例),您也应该包含这些存储库。
Example for a private maven repository definition, taken from Gradle User Guide:
从Gradle用户指南中获取的私有maven存储库定义的示例:
repositories { maven { url "http://repo.mycompany.com/maven2" } }
One last note - Maven Central and JCenter urls mentioned above are taken from Gradle User Guide.
最后一点 - 上面提到的Maven Central和JCenter网址来自Gradle用户指南。
#2
I think u have to include the android studio in whitelist... whitelist means, there should have certain apps in your system which are allowed to visit all links...
我认为你必须在白名单中包含android工作室......白名单意味着,你的系统中应该有某些应用程序允许访问所有链接...