无法解析配置 ':_armv7DebugCompile' 的所有依赖项 [英] Could not resolve all dependencies for configuration ':_armv7DebugCompile'
本文介绍了无法解析配置 ':_armv7DebugCompile' 的所有依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试使用cordova和cordova-crosswalk
插件构建Android应用程序时出现以下错误:
The following error occurs when trying to build an android app with cordova and the cordova-crosswalk
plugin:
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:
https://repo1.maven.org/maven2/com/android/support/support-v4/maven-metadata.xml
https://repo1.maven.org/maven2/com/android/support/support-v4/
https://download.01.org/crosswalk/releases/crosswalk/android/maven2/com/android/support/support-v4/maven-metadata.xml
https://download.01.org/crosswalk/releases/crosswalk/android/maven2/com/android/support/support-v4/
Required by:
:android:unspecified
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2.918 secs
/home/remi/dev/git/gitlab/sirap-sas/tereo-mobile/platforms/android/cordova/node_modules/q/q.js:126
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
推荐答案
请注意该部分:
无法解析配置:_armv7DebugCompile"的所有依赖项.
Could not resolve all dependencies for configuration ':_armv7DebugCompile'.
这可能是因为使用 crosswalk 插件 构建 android 项目尝试构建两个 apk
:一个用于 ARM
,另一个用于 <代码>x86.
It can happen because building an android project with the crosswalk plugin try to build two apks
: one for ARM
, the other for x86
.
解决方案是安装 Android Support Repository :
The solution is to install Android Support Repository :
- 打开 SDK 管理器(从命令行输入
android
). - 在
Extras
下,确保您已下载Android Support Repository
和Google Repository
.
- Open the SDK manager (from command line, type
android
). - Under
Extras
, Make sure you haveAndroid Support Repository
andGoogle Repository
downloaded.
这篇关于无法解析配置 ':_armv7DebugCompile' 的所有依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文