org.gradle.api.resources.ResourceException: Could not get resource in Android Studio 3.2

后端 未结 3 923
执笔经年
执笔经年 2020-12-24 11:03

I tried to sync the gradle and I got this problem. Can anyone help me?

org.gradle.api.resources.ResourceException: Could not get resource \'http         


        
相关标签:
3条回答
  • 2020-12-24 11:30

    You need to write this in your app gradle file

    classpath 'com.android.tools.build:gradle:3.4.1'
    
    
        allprojects {
        repositories {
            jcenter()
            maven {
                url "https://maven.google.com"
            }
        }
    }
    

    May be it's work

    0 讨论(0)
  • 2020-12-24 11:42

    Try this in Build Gradle:

    classpath 'com.android.tools.build:gradle:3.0.1'
    
    0 讨论(0)
  • 2020-12-24 11:43

    Open settings -> Build -> Gradle -> Android Studio -> Check (Enable emmbedded maven repository)

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