Android Studio Gradle build failed. Error:Cause: peer not authenticated

前端 未结 23 1806
离开以前
离开以前 2020-12-03 04:54

I have already created one project and gradle sync worked successfully.

When I try to create another project it fails and gives the error message that



        
23条回答
  •  攒了一身酷
    2020-12-03 05:10

    THis fixed it for me after wasting lot of time trying various solutions: Check the dependencies -> classpath in build.gradle file of project

    dependencies {
        classpath 'com.android.tools.build:gradle:2.10'
      }
    

    Changed this to classpath 'com.android.tools.build:gradle:2.0.0-rc1 in my case to fix the issue . To know the correct version to be used, made a new project and checked the build.gradle file . Hope this helps.

提交回复
热议问题