Cannot install Support repository and sync project in Android Studio

后端 未结 4 1385
一个人的身影
一个人的身影 2020-12-02 16:56

I am trying to use the support libraries of version 25.2.0 so I will be able to use the CameraKit library.

I have got the newest build tools downloaded:

4条回答
  •  爱一瞬间的悲伤
    2020-12-02 17:51

    Make sure to put it under allprojects! My mistake was to put it under buildscript.

    DON'T DO THIS:

    buildscript {
        repositories {
            jcenter()
             maven {
                 url 'https://maven.google.com' //don't put it here
             }
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:2.3.3'
        }
    }
    

    BUT INSTEAD DO THIS:

    allprojects {
        repositories {
            jcenter()
            maven {
                url 'https://maven.google.com' //put it here
            }
        }
    }
    

提交回复
热议问题