failed to resolve com.android.support:appcompat-v7:22 and com.android.support:recyclerview-v7:21.1.2
These are the correct version that you can add in your build.gradle according to the API needs.
API 24:
implementation 'com.android.support:appcompat-v7:24.2.1'
implementation 'com.android.support:recyclerview-v7:24.2.1'
API 25:
implementation 'com.android.support:appcompat-v7:25.4.0'
implementation 'com.android.support:recyclerview-v7:25.4.0'
API 26:
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:recyclerview-v7:26.1.0'
API 27:
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:recyclerview-v7:27.1.1'
Failed to resolve: com.android.support:appcompat-v7
Well, I resolved the problem by changing the version of the appcompat-v7 and design repositories to 22.0.1 from 22.2.1. 22.0.1 is not a valid dependency version.
In my gradle file ->
compile 'com.android.support:appcompat-v7:22.0.1'
compile 'com.android.support:design:22.0.1'
Changed this to
compile 'com.android.support:appcompat-v7:22.2.1'
compile 'com.android.support:design:22.2.1'
Failed to resolve: recyclerview-v7
Finally I found a solution. Upgrading all the support dependencies to the latest version, solved the issue. You can check the latest version of dependencies here. I upgraded the support dependencies to the latest version 28.0.0-alpha3. It solved my problem.
failed to find: com.android.support:appcompat-v7:22.2.0
Just update your support library and support repository & your SDK Manager
,
Then
compile 'com.android.support:appcompat-v7:22.2.0'
Please check this SO Answer
Android Studio Failed to resolve: com.android.support:support-core-utils:23.2.1
You're getting this error because the support-core-utils
library was part of the v4 Support Library in v23.2.1
.
With the release of v24.2.0
, the v4 Support Library has been split into several smaller modules one of which is support-core-utils
. For more information on the split check the following link: https://developer.android.com/topic/libraries/support-library/revisions.html#24-2-0-v4-refactor
So the solution to your issue is to use a newer version of support-core-utils
library such as 25.0.1
.
Failed to resolve only recyclerview
You have a typo in your dependency, a dot instead of the colon after the group ID.
It should say:
compile 'com.android.support:recyclerview-v7:21.0.0'
^
Also, consider using the latest versions (22.2.0) instead of 21.0.0.
Related Topics
Android:Static Fields and Memory Leaks
Linkedlist Put into Intent Extra Gets Recast to Arraylist When Retrieving in Next Activity
How to Have Searched Characters Colored When We Use Searchview in Recyclerview
Bypass Android Usb Host Permission Confirmation Dialog
Download Files and Store Them Locally with Phonegap/Jquery Mobile Android and iOS Apps
How to Implement a Listview Without Listactivity? (Use Only Activity)
Service Not Available - Geocoder Android
How to Make My Android App Appear in the Share List of Another Specific App
How to Show Multiple Markers on Mapfragment in Google Map API V2
Proguard Causing Runtimeexception (Unmarshalling Unknown Type Code) in Parcelable Class
Complete Working Sample of the Gmail Three-Fragment Animation Scenario
Android: Share Plain Text Using Intent (To All Messaging Apps)
Blur Background Behind Alertdialog