maven - Android Studio Connection Refused -


the problem i'm experiencing:

i'm getting following error when gradle script tries build:

> not resolve junit:junit:4.12.      > not resource 'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.         > not 'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.            > connection https://jcenter.bintray.com refused 

what need know:

(1) how resolve android studio's connection issue

or

(2) put .pom files manually

what have done far:

(1) access jcenter website manually in browser , download files

(2) set android studio's proxy settings , verified connection jcenter via ping in terminal

(3) tried using alternate repositories including: mavencentral() , maven { url 'http://repo1.maven.org/maven2' }

i solved issue.

for whatever reason, proxy settings in android studio's system settings wasn't transferring on gradle build. suspect due fact android studio's proxy settings seems offer http , needed https.

the solution enter proxy settings in gradle.properties:

systemprop.https.proxyhost=my.secure.proxy systemprop.https.proxyport=8080 

Popular posts from this blog

php - How should I create my API for mobile applications (Needs Authentication) -

5 Reasons to Blog Anonymously (and 5 Reasons Not To)

Google AdWords and AdSense - A Dynamic Small Business Marketing Duo