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.


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


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

重新编译即可,中途试过npm cache clear,试过修改config.xml的 <preference name="xwalkVersion" value="22+" /> 都没有成功;

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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容