While implementing Push Notifications, I get this error Could not resolve all dependencies for configuration
I’ve installed Google Play Services and Google Repository using SDK manager
and added the following dependencies in gradle file
dependencies {
compile 'com.google.android.gms:play-services-gcm:7.0.0'
....
}
When I run the app, I see following error,
Could not resolve all dependencies for configuration ':library:_debugCompile'.
> Could not resolve com.android.support:support-v4:22.0.0.
Required by:
:library:unspecified > com.google.android.gms:play-services:7.0.0 > com.google.android.gms:play-services-base:7.0.0
> No cached version of com.android.support:support-v4:22.0.0 available for offline mode.
After searching solution for a while, I found the issue is due to this “You need to make sure you have Android Support Repository
up to date – that is where Android Support Library
dependencies are resolved.”
So, I installed Android Support Repository
,
and Rebuild app… Fixed the issue.
Hope it helps somebody..
One thought on “Could not resolve com.android.support:support-v4:22.0.0, Android Studio”
Reblogged this on Dinesh Ram Kali..