Could not resolve all dependencies for configuration ':_debugCompile

Hey, i’m getting this error after grabbing my application on a different machine from git.
I’m sure i installed all Extras from the sdk manager. installed all sdk’s from 17^ since that’s the most common case with this error. But it’s still not enough to run in my case.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_debugCompile'.
   > Could not find any version that matches com.android.support:support-v4:+.
     Searched in the following locations:
         https://repo1.maven.org/maven2/com/android/support/support-v4/maven-met
adata.xml
         https://repo1.maven.org/maven2/com/android/support/support-v4/
     Required by:
         :android:unspecified

Here’s my plugin list and ionic info:
com.google.playservices 19.0.0 "Google Play Services for Android" com.phonegap.plugins.PushPlugin 2.5.0 "PushPlugin" cordova-android-support-v4 4.0.0 "Android Support v4" cordova-plugin-file 4.1.1 "File" cordova-plugin-file-transfer 1.5.0 "File Transfer" cordova-plugin-geolocation 2.1.0 "Geolocation" cordova-plugin-google-analytics 0.7.1 "Google Universal Analytics Plugin" cordova-plugin-media 2.2.0 "Media" cordova-plugin-whitelist 1.2.1 "Whitelist" cordova-plugin-x-toast 2.5.0 "Toast" ionic-plugin-keyboard 2.0.1 "Keyboard"

Cordova CLI: 5.1.1 Gulp version: CLI version 3.9.0 Gulp local: Local version 3.9.1 Ionic Version: 1.2.4 Ionic CLI Version: 2.0.0-beta.19 Ionic App Lib Version: 2.0.0-beta.9 OS: Windows 8.1 Node Version: v4.4.1
Anybody else experienced this and knows how to fix it?

Solved it.

On the project that wasn’t building i did the command:
ionic state clear --plugins

Then on working project I listed all my plugins with
ionic plugin ls

Copied that to a text file.

Re-added them to the non-building project with same the version as the working project and the --save command, and build and deployed it to my device.

Hope this helps someone :slight_smile:

1 Like