zhanghai / MaterialProgressBar

Material Design ProgressBar with consistent appearance
Apache License 2.0
2.21k stars 279 forks source link

Gradle error when trying to import the lib #65

Closed adamvarhegyi closed 6 years ago

adamvarhegyi commented 6 years ago
C:\a_projects\flexi-register\app\build.gradle
    Error:Error:Failed to resolve: com.android.support:appcompat-v7:26.0.2
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:C:/a_projects/flexi-register/app/build.gradle">Open File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>
    Error:Error:Failed to resolve: annotationProcessor
<a href="openFile:C:/a_projects/flexi-register/app/build.gradle">Open File</a>
    Error:Error:Failed to resolve: com.android.support:support-annotations:26.0.2
<a href="install.m2.repo">Install Repository and sync project</a><br><a href="openFile:C:/a_projects/flexi-register/app/build.gradle">Open File</a><br><a href="open.dependency.in.project.structure">Show in Project Structure dialog</a>

I have installed v7:26.0.2, still not works.

Any advice?

Gradle dependencies:

dependencies {

    compile fileTree(dir: 'libs', include: ['*.jar'])

    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })

    compile 'me.zhanghai.android.materialprogressbar:library:1.4.2'

    compile 'com.jakewharton:butterknife:8.8.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'

    compile 'com.amitshekhar.android:android-networking:1.0.0'

    compile 'com.android.support:appcompat-v7:26.+'
    compile 'com.android.support:support-v4:26.+'
    compile 'com.android.support:support-vector-drawable:26.+'
    testCompile 'junit:junit:4.12'
}
zhanghai commented 6 years ago

What do you mean by "installed v7:26.0.2"? Support libraries >= 26.0.0 has the following release note:

The support libraries are now available through Google's Maven repository. You do not need to download the support repository from the SDK Manager. For more information, see Support Library Setup.

zhanghai commented 6 years ago

Closing due to inactivity.