美文网首页
ionic cordova 编译报Could not resol

ionic cordova 编译报Could not resol

作者: syFu | 来源:发表于2017-09-05 00:09 被阅读0次

    编译时报错如下:

    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

    相关文章

      网友评论

          本文标题:ionic cordova 编译报Could not resol

          本文链接:https://www.haomeiwen.com/subject/xlbyjxtx.html