Gradle fails to resolve dependencies in Android Studio

后端 未结 8 814
野的像风
野的像风 2021-01-07 17:56

Whenever I add a dependency from an remote repository (jcenter) in Android Studio 1.1 (OS X) I get the following error upon syncing Gradle:

Error:(26, 13) Fa         


        
8条回答
  •  囚心锁ツ
    2021-01-07 18:33

    I am behind a corporate firewall. I had my http settings set, but not my https settings. So, I added the following to my gradle.properties file:

    systemProp.https.proxyPassword=...
    systemProp.https.proxyHost=...
    systemProp.https.nonProxyHosts=...
    systemProp.https.proxyUser=...
    systemProp.https.proxyPort=...
    

提交回复
热议问题