Cannot install Support repository and sync project in Android Studio

后端 未结 4 1389
一个人的身影
一个人的身影 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:42

    Try using the latest support library versions:

    compile 'com.android.support:appcompat-v7:25.3.1'
    compile 'com.android.support:support-v4:25.3.1'
    compile 'com.android.support:design:25.3.1'
    compile 'com.google.android.gms:play-services-vision:10.2.1'
    compile 'com.android.volley:volley:1.0.0'
    // Third party libraries
    compile 'com.flurgle:camerakit:0.9.17'
    
    compile 'com.android.support:recyclerview-v7:25.3.1'
    compile 'com.android.support:cardview-v7:25.3.1'
    

    here is the detail Dependencies

    EDIT

    Use Google Maven Repository

    To add them to your build, you need to first include Google's Maven repository in your top-level build.gradle file:

    Project -- build.gradle (Not app build.gradle)

     allprojects {
        repositories {
            // If you're using a version of Gradle lower than 4.1, you must instead use:
            maven {
                url 'https://maven.google.com'
            }
            // An alternative URL is 'https://dl.google.com/dl/android/maven2/'
    
           jcenter()
        }
    }
    

提交回复
热议问题