无法parsingconfiguration的所有依赖关系:_armv7DebugCompile'

尝试使用cordova和cordova-crosswalk插件构buildandroid应用程序时发生以下错误:

 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 

Solutions Collecting From Web of "无法parsingconfiguration的所有依赖关系:_armv7DebugCompile'"

请注意该部分:

无法parsingconfiguration的所有依赖关系:_armv7DebugCompile。

这可能是因为使用apks 插件构build一个android项目尝试构build两个apks :一个用于ARM ,另一个用于x86

解决scheme是安装Android支持库:

  • 打开SDKpipe理器(从命令行inputandroid )。
  • Extras ,确保你已经下载了Android Support RepositoryGoogle Repository

更新答案

似乎从十字路口开始, Android Support RepositoryGoogle Repository是不够的。

您还需要从Extras Local Maven repository for Support Libraries安装Local Maven repository for Support Libraries

对我来说解决scheme是:我更新人行横道到@ 15.44.384.13

 ionic browser add crosswalk@15.44.384.13 

然后我改变了config.xml

 <preference name="xwalkVersion" value="15+" /> 

cuz版本“16+”“18+”不适合我

这可能是你的问题,当你没有包括额外的谷歌支持存储库和Android支持存储库。 以及当你不更新cordova与您的cordova平台。因为cordova和cordova平台必须使用最新版本。更新您的cordova更新cordova与cordova平台更新platform_name(如android)的npm更新cordova -g – 保存和cordova平台。

 This worked for me 1.goto platforms\android\cordova-plugin-crosswalk-webview folder 2.Open .gradle file 3.find dependencies { compile xwalkSpec } and replace with dependencies { compile 'org.xwalk:xwalk_core_library:22.52.561.4' } ** 

注意:22.52.561.4是你的机器上的crasswalk的版本知道它,打开离子的应用程序,铬:/ /然后检查

 window.navigator.userAgent 

这将打印一些行,从那里复制xwalk细节

我知道添加答案有点晚。 但是我长期面对这个问题,这些步骤都没有解决。 如果你的IP来自伊朗,那么你应该用VPNbuild立你的项目。 一些国家似乎禁止依赖。