Android Studio / Intellij, Gradle Error:Cause: peer not authenticated

后端 未结 9 607
忘掉有多难
忘掉有多难 2020-12-08 17:06

Having a fight with IntelliJ at the moment. The darn thing won\'t download Gradle 2.1

I have an Android project hosted on GitHub, which I have cloned to my laptop.

相关标签:
9条回答
  • 2020-12-08 17:57

    When I updated to Android Studio 1.0 I found that I need to update to use 1.0.0 version of gradle.

    Inside of the build.gradle file I had

      dependencies {
            classpath 'com.android.tools.build:gradle:1.0.0-rc2'
    

    I changed it to remove the "-rc2"

      dependencies {
            classpath 'com.android.tools.build:gradle:1.0.0'
    
    0 讨论(0)
  • 2020-12-08 18:01

    I've fixed this issue by adding the following to me build.gradle:

    repositories{
       maven {    
           url 'http://repo1.maven.org/maven2';
             }
     } 
    

    Once done, try syncing and rebuilding your project. Hope this was helpful.

    0 讨论(0)
  • 2020-12-08 18:04

    I've fixed this issue by adding the following to my build.gradle:

    repositories { 
            maven { 
                url 'http://repo1.maven.org/maven2'; 
            } 
    } 
    

    Once done, try syncing and rebuilding your project. Hope this was helpful.

    0 讨论(0)
提交回复
热议问题