Could not resolve all dependencies for configuration ':_armv7DebugCompile'

↘锁芯ラ 提交于 2019-11-27 08:14:16

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.
zhanghaili

Update answer

Seems starting from crosswalk 16, Android Support Repository and Google Repository is not enough.

You need to install Local Maven repository for Support Libraries from Extras as well.

for me Solution was: i updated crosswalk to @15.44.384.13

ionic browser add crosswalk@15.44.384.13

then i changed config.xml:

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

cuz versions "16+" - "18+" not work for me

It may be the problem when you did not include google support respository and android support repository under extras. as well as when you not update the cordova with your cordova platform.because cordova and cordova platform must be use latest version.update your Cordova with npm update cordova -g --save and cordova platform with cordova platform update platform_name(like android).

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' 
}

**

note: 22.52.561.4 is version of crasswalk on your machine to know it , open ionic app , chrome://inspect then

window.navigator.userAgent

This will print some lines , copy xwalk details from there

I know it's a little late to add an answer. but I faced this issue for a long time and none of these steps fixed it. If your IP is from Iran, then you should build your project with VPN on. It seems that dependencies are banned for some countries.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!