Gradle fails to resolve dependencies in Android Studio

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

    A similar problem here, and when I choose Build -> Clean Project there is a "peer not authenticated" error.

    solved by using "http://jcenter.bintray.com/" instead of "https://jcenter.bintray.com/"

    repositories {
        jcenter({url "http://jcenter.bintray.com/"})
    }
    

    hope this work for you.

提交回复
热议问题