Error: Failed to resolve: support-annotations

0

I've been removing external libraries from my project because I was getting bugs from mixed versions of the appCompat library, I tried to delete everything related to version 25.2.0 because I need to use 22.2.1% with%. The error happens when I try the Gradle sync, see the image:

How can I readitize what is required of me.

UPDATE:

I get this error if I try to build:

  

Error: Could not resolve all files for configuration ': app: debugCompileClasspath'.

     
    

Could not find support-annotations.jar (com.android.support:support-annotations:25.2.0).       Searched in the following locations:           file: / G: /Static/Android/sdk/extras/android/m2repository/com/android/support/support-annotations/25.2.0/support-annotations-25.2.0.jar

  
    
asked by anonymous 12.02.2018 / 16:41

1 answer

0

You must add the following dependency in the dependencies block of build.gradle:

compile 'com.android.support:support-annotations:22.2.1'
    
12.02.2018 / 19:18