Skip to content Skip to sidebar Skip to footer

Gradle Cannot Resolve Dependencies Classpath From Jcenter() In Android Studio

I`m using android studio 1.5.1 on ubuntu. I want to add google analytic to my android app.So I followed google analytic document but when I change mavenCentral() to jcenter() , And

Solution 1:

I think your network is restricted to access some sites or download from those sites.

If you are working from your office then it may have a proxy server. and it is restricting from downloading Gradle dependencies.

A proxy or proxy server is basically another computer which serves as a hub through which internet requests are processed. By connecting through one of these servers, your computer sends your requests to the proxy server which then processes your request and returns what you were wanting.

Solution 2:

Try this also First check your internet proxy settings copy the proxy settings like proxy host and port no. and go to your "gradle.properties" file in project and paste it like this

systemProp.http.proxyHost="copied proxy host"systemProp.http.proxyPort="copied proxy port"systemProp.https.proxyHost="copied proxy host"systemProp.https.proxyPort="copied proxy port"

Generally people paste the system prop for http but forget for https so please paste both.

Post a Comment for "Gradle Cannot Resolve Dependencies Classpath From Jcenter() In Android Studio"