美文网首页
cordova 2017年9月1号之后打包失败的问题

cordova 2017年9月1号之后打包失败的问题

作者: 杨晨1994 | 来源:发表于2017-09-13 15:12 被阅读0次

    我是因为用了crosswalk插件造成打包不了的问题

      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:  
             :android:unspecified  
          > 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/crosswa  
    lk/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 Unav  
    ailable  
      
    * Try:  
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more l  
    og output.
    

    修要修改这个文件的配置platforms/android/cordova-plugin-crosswalk-webview/

    dependencies {  
          compile xwalkSpec  
    }  
    

    替换

    dependencies {  
          compile 'org.xwalk:xwalk_core_library:23.53.589.4'
    }  
    

    相关文章

      网友评论

          本文标题:cordova 2017年9月1号之后打包失败的问题

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