Gradle fails to resolve dependencies in Android Studio

后端 未结 8 821
野的像风
野的像风 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:51

    Rather late but probably your gradle works in offline mode. Go to File->Settings->Gradle and uncheck the offline mode. Then try to refresh gradle and it should work

提交回复
热议问题