起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3899|回复: 1

[处理中3] WeX5 3.8pre打包失败

[复制链接]

16

主题

43

帖子

323

积分

中级会员

Rank: 3Rank: 3

积分
323
QQ
发表于 2018-2-23 14:46:54 | 显示全部楼层 |阅读模式
使用WeX5 3.8pre对原来3.7版能正常打包的app进行打包,结果打包失败。打包过程及出错信息如下,请帮忙看看是什么问题?是ndk吗?(因发贴长度限制,删除了前面和后面的部分内容):

     ... ...      
   生成android应用包:

      You have been opted out of telemetry. To change this, run: cordova telemetry on.
      args.nofetch undefined
      android project rename compelete!!!!!!
      ANDROID_HOME=E:\WeX5_3.8_pre\tools\adt-sdk
      JAVA_HOME=E:\WeX5_3.8_pre\java\jre1.8
      Parallel execution with configuration on demand is an incubating feature.
      :wrapper

      BUILD SUCCESSFUL

      Total time: 3.963 secs
      Subproject Path: CordovaLib
      Subproject Path: JustepGetContent
      NDK is missing a "platforms" directory.
      If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to E:\WeX5_3.8_pre\tools\adt-sdk\ndk-bundle.
      If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

      The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
              at build_cljiu6wkw4lo5l58mr0xe2lxq.run(E:\WeX5_3.8_pre\model\Native\power\build\src\platforms\android\build.gradle:149)

      FAILURE: Build failed with an exception.

      * What went wrong:
      A problem occurred configuring root project 'android'.
      > Could not resolve all dependencies for configuration ':_debugApk'.
         > A problem occurred configuring project ':CordovaLib'.
            > Could not resolve all files for configuration ':CordovaLib:classpath'.
               > Could not download android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-plugin:1.5): No cached version available for offline mode
               > Could not download gradle-bintray-plugin.jar (com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3): No cached version available for offline mode
               > Could not download http-builder.jar (org.codehaus.groovy.modules.http-builder:http-builder:0.7.2): No cached version available for offline mode
               > Could not download maven-ant-tasks.jar (org.apache.maven:maven-ant-tasks:2.1.3): No cached version available for offline mode
               > Could not download httpclient.jar (org.apache.httpcomponents:httpclient:4.2.1): No cached version available for offline mode
               > Could not download json-lib-jdk15.jar (net.sf.json-lib:json-lib:2.3): No cached version available for offline mode
               > Could not download nekohtml.jar (net.sourceforge.nekohtml:nekohtml:1.9.16): No cached version available for offline mode
               > Could not download xml-resolver.jar (xml-resolver:xml-resolver:1.2): No cached version available for offline mode
               > Could not download ant.jar (org.apache.ant:ant:1.8.0): No cached version available for offline mode
               > Could not download classworlds.jar (classworlds:classworlds:1.1-alpha-2): No cached version available for offline mode
               > Could not download plexus-container-default.jar (org.codehaus.plexus:plexus-container-default:1.0-alpha-9-stable-1): No cached version available for offline mode
               > Could not download plexus-utils.jar (org.codehaus.plexus:plexus-utils:1.5.15): No cached version available for offline mode
               > Could not download plexus-interpolation.jar (org.codehaus.plexus:plexus-interpolation:1.11): No cached version available for offline mode
               > Could not download maven-artifact.jar (org.apache.maven:maven-artifact:2.2.1): No cached version available for offline mode
               > Could not download maven-artifact-manager.jar (org.apache.maven:maven-artifact-manager:2.2.1): No cached version available for offline mode
               > Could not download maven-model.jar (org.apache.maven:maven-model:2.2.1): No cached version available for offline mode
               > Could not download maven-project.jar (org.apache.maven:maven-project:2.2.1): No cached version available for offline mode
               > Could not download maven-error-diagnostics.jar (org.apache.maven:maven-error-diagnostics:2.2.1): No cached version available for offline mode
               > Could not download maven-settings.jar (org.apache.maven:maven-settings:2.2.1): No cached version available for offline mode
               > Could not download wagon-file.jar (org.apache.maven.wagon:wagon-file:1.0-beta-6): No cached version available for offline mode
               > Could not download wagon-http-lightweight.jar (org.apache.maven.wagon:wagon-http-lightweight:1.0-beta-6): No cached version available for offline mode
               > Could not download wagon-provider-api.jar (org.apache.maven.wagon:wagon-provider-api:1.0-beta-6): No cached version available for offline mode
               > Could not download httpcore.jar (org.apache.httpcomponents:httpcore:4.2.1): No cached version available for offline mode
               > Could not download commons-codec.jar (commons-codec:commons-codec:1.6): No cached version available for offline mode
               > Could not download commons-beanutils.jar (commons-beanutils:commons-beanutils:1.8.0): No cached version available for offline mode
               > Could not download commons-collections.jar (commons-collections:commons-collections:3.2.1): No cached version available for offline mode
               > Could not download commons-lang.jar (commons-lang:commons-lang:2.4): No cached version available for offline mode
               > Could not download ezmorph.jar (net.sf.ezmorph:ezmorph:1.0.6): No cached version available for offline mode
               > Could not download xercesImpl.jar (xerces:xercesImpl:2.9.1): No cached version available for offline mode
               > Could not download ant-launcher.jar (org.apache.ant:ant-launcher:1.8.0): No cached version available for offline mode
               > Could not download maven-repository-metadata.jar (org.apache.maven:maven-repository-metadata:2.2.1): No cached version available for offline mode
               > Could not download backport-util-concurrent.jar (backport-util-concurrent:backport-util-concurrent:3.1): No cached version available for offline mode
               > Could not download maven-profile.jar (org.apache.maven:maven-profile:2.2.1): No cached version available for offline mode
               > Could not download maven-plugin-registry.jar (org.apache.maven:maven-plugin-registry:2.2.1): No cached version available for offline mode
               > Could not download wagon-http-shared.jar (org.apache.maven.wagon:wagon-http-shared:1.0-beta-6): No cached version available for offline mode
               > Could not download xml-apis.jar (xml-apis:xml-apis:1.3.04): No cached version available for offline mode
               > Could not download xercesMinimal.jar (nekohtml:xercesMinimal:1.9.6.2): No cached version available for offline mode
               > Could not download nekohtml.jar (nekohtml:nekohtml:1.9.6.2): No cached version available for offline mode

      * 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: 7.53 secs
      Error: cmd: Command failed with exit code 1 Error output:
      FAILURE: Build failed with an exception.

      ... ...


91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35920
发表于 2018-2-24 10:18:21 | 显示全部楼层
修改Native下自己工程下的build.properties文件, 找到
#offline=false
改成
offline=false
如果没有找到#offline=false, 在build.properties的最行添加offline=false
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-5-4 08:24 , Processed in 0.073493 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表