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

QQ登录

只需一步,快速开始

12
返回列表 发新帖
楼主: bh_chen

[处理中3] WeX5 3.8创建本地APP报错

[复制链接]

9

主题

32

帖子

170

积分

初级会员

Rank: 2

积分
170
QQ
 楼主| 发表于 2018-6-15 11:02:33 | 显示全部楼层
liangyongfei 发表于 2018-6-15 10:41
现在报错,已经没有提示内存问题了!
现在看上去就是环境的问题

1、已经杀过毒、也退出杀毒软件
2、已经试过重新解压
3、红色部分不是内存问题吗
  1. <div>      You have been opted out of telemetry. To change this, run: cordova telemetry on.</div><div>      args.nofetch undefined</div><div>      android project rename compelete!!!!!!</div><div>      ANDROID_HOME=D:\WeX5_3.8\tools\adt-sdk</div><div>      JAVA_HOME=D:\WeX5_3.8\java\jre1.8</div><div>   C:\Users\b02987\AppData\Local\Temp\5bc353d3-c28a-4a33-9247-5606aef49968\pack.xml:91: exec returned: 1</div><div>   <span style="white-space:pre">        </span>at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)</div><div>   <span style="white-space:pre">        </span>at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)</div><div>   <span style="white-space:pre">        </span>at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)</div><div>   <span style="white-space:pre">        </span>at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)</div><div>   <span style="white-space:pre">        </span>at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)</div><div>   <span style="white-space:pre">        </span>at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)</div><div>   <span style="white-space:pre">        </span>at java.lang.reflect.Method.invoke(Method.java:497)</div><div>   <span style="white-space:pre">        </span>at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)</div><div>   <span style="white-space:pre">        </span>at org.apache.tools.ant.Task.perform(Task.java:348)</div><div>     <font color="#ff0000"> Error occurred during initialization of VM</font></div><div><font color="#ff0000">      Could not reserve enough space for 1048576KB object heap<span style="white-space:pre">        </span>at org.apache.tools.ant.Target.execute(Target.java:435)</font></div><div><font color="#ff0000">   <span style="white-space:pre">        </span>at org.apache.tools.ant.Target.performTasks(Target.java:456)</font></div><div><font color="#ff0000">      Error: cmd: Command failed with exit code 1 Error output:</font></div><div><font color="#ff0000">      Picked up _JAVA_OPTIONS: -Xmx1024M</font></div><div>   ****ERROR****: 子任务 "exec" 执行失败。</div><div>   </div><div>   <span style="white-space:pre">        </span>at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)</div><div>   <span style="white-space:pre">        </span>at org.apache.tools.ant.Project.executeTarget(Project.java:1364)****ERROR****: 任务 "buildAndroid" 执行失败。</div><div>   ****ERROR****: 执行出错:</div><div>   ****ERROR****: 错误信息: exec returned: 1</div><div>   ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.htm</div><div></div><div></div>
复制代码
4、在公司,硬件组应该把远程关掉了,这个没有办法远程

回复 支持 反对

使用道具 举报

发表于 2018-6-15 11:11:26 | 显示全部楼层
bh_chen 发表于 2018-6-15 11:02
1、已经杀过毒、也退出杀毒软件
2、已经试过重新解压
3、红色部分不是内存问题吗

我加你qq了。qq了解下情况吧`1
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

9

主题

32

帖子

170

积分

初级会员

Rank: 2

积分
170
QQ
 楼主| 发表于 2018-7-18 10:36:12 | 显示全部楼层
本帖最后由 bh_chen 于 2018-7-18 10:38 编辑
liangyongfei 发表于 2018-6-15 11:11
我加你qq了。qq了解下情况吧`1

为了解决打包APP失败的问题,这几天重装了电脑系统,再次打包本地APP出现了以下错误,请问这个怎么解决?


  1. <div> 生成android应用包:</div><div>      </div><div>      You have been opted out of telemetry. To change this, run: cordova telemetry on.</div><div>      args.nofetch undefined</div><div>      android project rename compelete!!!!!!</div><div>      ANDROID_HOME=E:\WeX5_3.8\tools\adt-sdk</div><div>      JAVA_HOME=E:\WeX5_3.8\java\jre1.8</div><div>      Parallel execution with configuration on demand is an incubating feature.</div><div>      :wrapper</div><div>      </div><div>      BUILD SUCCESSFUL</div><div>      </div><div>      Total time: 15.864 secs</div><div>      Subproject Path: CordovaLib</div><div>      Subproject Path: JustepGetContent</div><div>      NDK is missing a "platforms" directory.</div><div>      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\tools\adt-sdk\ndk-bundle.</div><div>      If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.</div><div>      </div><div>      The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.</div><div>      <span style="white-space:pre">        </span>at build_boqb9aq841c7lrg9m4p4uwfn4.run(E:\WeX5_3.8\model\Native\锟斤拷途牛\build\src\platforms\android\build.gradle:148)</div><div>      </div><div>      FAILURE: Build failed with an exception.</div><div>      </div><div>      * What went wrong:</div><div>      A problem occurred configuring root project 'android'.</div><div>      > Could not resolve all dependencies for configuration ':_debugApk'.</div><div>         > A problem occurred configuring project ':CordovaLib'.</div><div>            > Could not resolve all files for configuration ':CordovaLib:classpath'.</div><div>               > Could not download android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-plugin:1.5)</div><div>                  > Could not get resource 'https://repo1.maven.org/maven2/com/github/dcendents/android-maven-gradle-plugin/1.5/android-maven-gradle-plugin-1.5.jar'.</div><div>                     > Could not HEAD 'https://repo1.maven.org/maven2/com/github/dcendents/android-maven-gradle-plugin/1.5/android-maven-gradle-plugin-1.5.jar'.</div><div>                        > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</div><div>               > Could not download gradle-bintray-plugin.jar (com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3)</div><div>                  > Could not get resource 'https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.7.3/gradle-bintray-plugin-1.7.3.jar'.</div><div>                     > Could not HEAD 'https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.7.3/gradle-bintray-plugin-1.7.3.jar'.</div><div>                        > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</div><div>               > Could not download http-builder.jar (org.codehaus.groovy.modules.http-builder:http-builder:0.7.2)</div><div>                  > Could not get resource 'https://jcenter.bintray.com/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/http-builder-0.7.2.jar'.</div><div>                     > Could not HEAD 'https://jcenter.bintray.com/org/codehaus/groovy/modules/http-builder/http-builder/0.7.2/http-builder-0.7.2.jar'.</div><div>                        > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</div><div>               > Could not download maven-ant-tasks.jar (org.apache.maven:maven-ant-tasks:2.1.3)</div><div>                  > Could not get resource 'https://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar'.</div><div>                     > Could not HEAD 'https://repo1.maven.org/maven2/org/apache/maven/maven-ant-tasks/2.1.3/maven-ant-tasks-2.1.3.jar'.</div><div>                        > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</div><div>               > Could not download httpclient.jar (org.apache.httpcomponents:httpclient:4.2.1)</div><div>      </div><div>      BUILD FAILED</div>
复制代码



回复 支持 反对

使用道具 举报

9

主题

32

帖子

170

积分

初级会员

Rank: 2

积分
170
QQ
 楼主| 发表于 2018-7-18 10:37:46 | 显示全部楼层
bh_chen 发表于 2018-7-18 10:36
为了解决打包APP失败的问题,这几天重装了电脑系统,再次打包本地APP出现了以下错误,请问这个怎么解决? ...
  1. Total time: 58.69 secs
  2.                   > Could not get resource 'https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.2.1/httpclient-4.2.1.jar'.
  3.                      > Could not HEAD 'https://repo1.maven.org/maven2/org/apache/httpcomponents/httpclient/4.2.1/httpclient-4.2.1.jar'.
  4.                         > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  5.                > Could not download json-lib-jdk15.jar (net.sf.json-lib:json-lib:2.3)
  6.                   > Could not get resource 'https://repo1.maven.org/maven2/net/sf/json-lib/json-lib/2.3/json-lib-2.3-jdk15.jar'.
  7.                      > Could not HEAD 'https://repo1.maven.org/maven2/net/sf/json-lib/json-lib/2.3/json-lib-2.3-jdk15.jar'.
  8.                         > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

  9.                            > Could not download nekohtml.jar (nekohtml:nekohtml:1.9.6.2)
  10.                   > Could not get resource 'https://repo1.maven.org/maven2/nekohtml/nekohtml/1.9.6.2/nekohtml-1.9.6.2.jar'.
  11.                      > Could not HEAD 'https://repo1.maven.org/maven2/nekohtml/nekohtml/1.9.6.2/nekohtml-1.9.6.2.jar'.
  12.                         > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  13.       
  14.       * Try:
  15.       Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  16.       Error: cmd: Command failed with exit code 1 Error output:
  17.       FAILURE: Build failed with an exception.
  18.       
  19.       * What went wrong:
  20.       A problem occurred configuring root project 'android'.
  21.       > Could not resolve all dependencies for configuration ':_debugApk'.
  22.          > A problem occurred configuring project ':CordovaLib'.
  23.             > Could not resolve all files for configuration ':CordovaLib:classpath'.
  24.                > Could not download android-maven-gradle-plugin.jar (com.github.dcendents:android-maven-gradle-plugin:1.5)
  25.                   > Could not get resource 'https://repo1.maven.org/maven2/com/github/dcendents/android-maven-gradle-plugin/1.5/android-maven-gradle-plugin-1.5.jar'.
  26.                      > Could not HEAD 'https://repo1.maven.org/maven2/com/github/dcendents/android-maven-gradle-plugin/1.5/android-maven-gradle-plugin-1.5.jar'.
  27.                         > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  28.                > Could not download gradle-bintray-plugin.jar (com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3)
  29.                   > Could not get resource 'https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.7.3/gradle-bintray-plugin-1.7.3.jar'.
  30.                      > Could not HEAD 'https://jcenter.bintray.com/com/jfrog/bintray/gradle/gradle-bintray-plugin/1.7.3/gradle-bintray-plugin-1.7.3.jar'.
  31.                         > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  32.                                
  33.                                 > Could not download xml-apis.jar (xml-apis:xml-apis:1.3.04)
  34.                   > Could not get resource 'https://repo1.maven.org/maven2/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar'.
  35.                      > Could not HEAD 'https://repo1.maven.org/maven2/xml-apis/xml-apis/1.3.04/xml-apis-1.3.04.jar'.
  36.                         > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  37.                > Could not download xercesMinimal.jar (nekohtml:xercesMinimal:1.9.6.2)
  38.                   > Could not get resource 'https://repo1.maven.org/maven2/nekohtml/xercesMinimal/1.9.6.2/xercesMinimal-1.9.6.2.jar'.
  39.                      > Could not HEAD 'https://repo1.maven.org/maven2/nekohtml/xercesMinimal/1.9.6.2/xercesMinimal-1.9.6.2.jar'.
  40.                         > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  41.                > Could not download nekohtml.jar (nekohtml:nekohtml:1.9.6.2)
  42.                   > Could not get resource 'https://repo1.maven.org/maven2/nekohtml/nekohtml/1.9.6.2/nekohtml-1.9.6.2.jar'.
  43.                      > Could not HEAD 'https://repo1.maven.org/maven2/nekohtml/nekohtml/1.9.6.2/nekohtml-1.9.6.2.jar'.
  44.                         > sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
  45.       
  46.       * Try:
  47.       Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  48.       Picked up _JAVA_OPTIONS: -Xmx1024M
  49.    C:\Users\b02987\AppData\Local\Temp\63e09109-9c25-41c6-a779-8c48275694fa\pack.xml:91: exec returned: 1
  50.            at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
  51.            at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
  52.            at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
  53.            at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
  54.            at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
  55.            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  56.            at java.lang.reflect.Method.invoke(Method.java:497)
  57.            at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
  58.            at org.apache.tools.ant.Task.perform(Task.java:348)
  59.            at org.apache.tools.ant.Target.execute(Target.java:435)
  60.            at org.apache.tools.ant.Target.performTasks(Target.java:456)
  61.            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
  62.            at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
  63.            at com.justep.deploy.app.utils.BuildHelper.execTask(Unknown Source)
  64.            at com.justep.deploy.app.utils.Builder.main(Unknown Source)
  65.    ****ERROR****: 子任务 "exec" 执行失败。
  66.    ****ERROR****: 任务 "buildAndroid" 执行失败。
  67.    ****ERROR****: 执行出错:
  68.    ****ERROR****: 错误信息: exec returned: 1
  69.    ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
  70. ****ERROR****: 子任务 "java" 执行失败。
  71. ****ERROR****: 任务 "pack" 执行失败。
  72. ****ERROR****: 执行出错:
  73. ****ERROR****: 错误信息: Java returned: -3
  74. ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
复制代码
回复 支持 反对

使用道具 举报

发表于 2018-7-18 11:00:26 | 显示全部楼层

3.8 打包,有些资源是网络下载的!需要保证外网正常访问才行!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

9

主题

32

帖子

170

积分

初级会员

Rank: 2

积分
170
QQ
 楼主| 发表于 2018-7-18 12:11:35 | 显示全部楼层
liangyongfei 发表于 2018-7-18 11:00
3.8 打包,有些资源是网络下载的!需要保证外网正常访问才行!

可以访问外网啊,直连的,并没有使用代理
回复 支持 反对

使用道具 举报

发表于 2018-7-18 13:12:12 | 显示全部楼层
bh_chen 发表于 2018-7-18 12:11
可以访问外网啊,直连的,并没有使用代理

保证网址正常的额情况下
那你再重新打包一次试试吧!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-20 01:25 , Processed in 0.094972 second(s), 20 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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