Could not find com.android.tools.build:gradle:3.5

后端 未结 6 1862
误落风尘
误落风尘 2021-01-03 22:47

I\'m trying to update gradle from 1.3.1 to 3.5, as some of my dependencies requires version 3.3 or above.

I\'ve seen similar questions, but none of them help.

<
6条回答
  •  伪装坚强ぢ
    2021-01-03 23:13

    To fix this issue check do you have google() repo in your project's level build.gradle file.

    buildscript {
        repositories {
            jcenter()
            google() //HAVE YOU MISS IT?
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.5.0'
        }
    }
    
    allprojects {
        repositories {
            jcenter()
            google() //HAVE YOU MISS IT?
        }
    }
    

提交回复
热议问题