Rémi Becheras Rémi Becheras - 1 year ago 174
Android Question

Could not resolve all dependencies for configuration ':_armv7DebugCompile'

The following error occurs when trying to build an android app with cordova and the


FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':_armv7DebugCompile'.
> Could not find any version that matches com.android.support:support-v4:+.
Searched in the following locations:
Required by:

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.


Total time: 2.918 secs

throw e;
Error code 1 for command: /home/remi/dev/git/gitlab/sirap-sas/tereo-mobile/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/remi/dev/git/gitlab/sirap-sas/tereo-mobile/platforms/android/build.gradle,-PcdvBuildArch=arm,-Dorg.gradle.daemon=true
ERROR running one or more of the platforms: Error: /home/remi/dev/git/gitlab/sirap-sas/tereo-mobile/platforms/android/cordova/run: Command failed with exit code 1
You may not have the required environment or OS to run this project

Answer Source

Please notice that section:

Could not resolve all dependencies for configuration ':_armv7DebugCompile'.

It can happen because building an android project with the crosswalk plugin try to build two apks : one for ARM, the other for x86.

The solution is to install Android Support Repository :

  • Open the SDK manager (from command line, type android).
  • Under Extras, Make sure you have Android Support Repository and Google Repository downloaded.
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download