ionic cordova 编译报Could not resolve org.xwalk:xwalk_core_library:22+

编译时报错如下:

FAILURE: Build failed with an exception.

* What went wrong:

A problem occurred configuring root project 'android'.

> Could not resolve all dependencies for configuration ':_armv7DebugApkCopy'.

> Could not resolve org.xwalk:xwalk_core_library:22+.

Required by:

project :

> Could not resolve org.xwalk:xwalk_core_library:22+.

> Failed to list versions for org.xwalk:xwalk_core_library.

> Unable to load Maven meta-data from

https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml.

> Could not GET

'https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml'.

Received status code 503 from server: Service Unavailable


* 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: 18.088 secs

Error: cmd: Command failed with exit code 1 Error output:

FAILURE: Build failed with an exception.

* What went wrong:

A problem occurred configuring root project 'android'.

> Could not resolve all dependencies for configuration ':_armv7DebugApkCopy'.

> Could not resolve org.xwalk:xwalk_core_library:22+.

Required by:

project :

> Could not resolve org.xwalk:xwalk_core_library:22+.

> Failed to list versions for org.xwalk:xwalk_core_library.

> Unable to load Maven meta-data from

https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml.

> Could not GET

'https://download.01.org/crosswalk/releases/crosswalk/android/maven2/org/xwalk/xwalk_core_library/maven-metadata.xml'.

Received status code 503 from server: Service Unavailable

* Try:

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


解决办法是修改设置如下:


ionic cordova 编译报Could not resolve org.xwalk:xwalk_core_library:22+_第1张图片

即将 compile xwalkSpec 修改为:compile 'org.xwalk:xwalk_core_library:22.52.561.4' 

重新编译即可,中途试过npm cache clear,试过修改config.xml的 都没有成功;

ionic论坛帖子:https://forum.ionicframework.com/t/crosswalk-error-on-android-build/77774/15

你可能感兴趣的:(ionic cordova 编译报Could not resolve org.xwalk:xwalk_core_library:22+)