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

QQ登录

只需一步,快速开始

查看: 2619|回复: 4

[结贴] v3.1.1升级v3.2后源码打包出错,什么原因呢?

[复制链接]

52

主题

209

帖子

482

积分

中级会员

Rank: 3Rank: 3

积分
482
QQ
发表于 2015-7-18 00:15:31 | 显示全部楼层 |阅读模式
本帖最后由 hnytkeok 于 2015-7-18 16:22 编辑

在v3.1.1版运行是正常的,





  [echo] Resolving Dependencies for X5...
[dependency] Library dependencies:
[dependency]
[dependency] ------------------
[dependency] Ordered libraries:
[dependency]
[dependency] ------------------
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
    [javac] Compiling 96 source files to F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\build\C6B08D4B28F00001B4E5E1C220741923\build\platforms\android\CordovaLib-crosswalk\bin\classes
    [javac] 注: 某些输入文件使用或覆盖了已过时的 API。
    [javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
     [echo] Creating library output jar file...
      [jar] Building jar: F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\build\C6B08D4B28F00001B4E5E1C220741923\build\platforms\android\CordovaLib-crosswalk\bin\classes.jar
-post-compile:
-obfuscate:
-dex:
     [echo] Library project: do not convert bytecode...
-crunch:
   [crunch] Crunching PNG Files in source dir: F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\build\C6B08D4B28F00001B4E5E1C220741923\build\platforms\android\CordovaLib-crosswalk\res
   [crunch] To destination dir: F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\build\C6B08D4B28F00001B4E5E1C220741923\build\platforms\android\CordovaLib-crosswalk\bin\res
   [crunch] Crunched 0 PNG files to update cache
-package-resources:
     [echo] Library project: do not package resources...
-package:
     [echo] Library project: do not package apk...
-post-package:
-release-prompt-for-password:
-release-nosign:
     [echo]
[propertyfile] Creating new property file: F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\build\C6B08D4B28F00001B4E5E1C220741923\build\platforms\android\CordovaLib-crosswalk\bin\build.prop
[propertyfile] Updating property file: F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\build\C6B08D4B28F00001B4E5E1C220741923\build\platforms\android\CordovaLib-crosswalk\bin\build.prop
[propertyfile] Updating property file: F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\build\C6B08D4B28F00001B4E5E1C220741923\build\platforms\android\CordovaLib-crosswalk\bin\build.prop
[propertyfile] Updating property file: F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\build\C6B08D4B28F00001B4E5E1C220741923\build\platforms\android\CordovaLib-crosswalk\bin\build.prop
-release-sign:
-post-build:
release:
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] Generating resource IDs...
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
    [javac] Compiling 30 source files to F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\build\C6B08D4B28F00001B4E5E1C220741923\build\platforms\android\bin\classes
    [javac] F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\build\C6B08D4B28F00001B4E5E1C220741923\build\platforms\android\src\plugin\http\request\HttpRequest.java:56: 错误: 不兼容的类型
    [javac]         Iterator<Object> iterator = params.keys();
    [javac]                                                ^
    [javac]   需要: Iterator<Object>
    [javac]   找到:    Iterator<String>
    [javac] 注: 某些输入文件使用或覆盖了已过时的 API。
    [javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
    [javac] 注: 某些输入文件使用了未经检查或不安全的操作。
    [javac] 注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
    [javac] 1 个错误
BUILD FAILED
F:\BaiduYunDownload\WeX5_V3.2\tools\adt-sdk\tools\ant\build.xml:716: The following error occurred while executing this line:
F:\BaiduYunDownload\WeX5_V3.2\tools\adt-sdk\tools\ant\build.xml:730: Compile failed; see the compiler error output for details.
Total time: 5 seconds
F:\BaiduYunDownload\WeX5_V3.2\model\Native\鍩硅鍦ㄧ嚎\build\C6B08D4B28F00001B4E5E1C220741923\build\platforms\android\cordova\node_modules\q\q.js:126
                    throw e;
                          ^
Error code 1 for command: cmd with args: /s,/c,ant,release,-f,F:\BaiduYunDownload\WeX5_V3.2\model\Native\鍩硅鍦ㄧ嚎\build\C6B08D4B28F00001B4E5E1C220741923\build\platforms\android\build.xml
Error: F:\BaiduYunDownload\WeX5_V3.2\model\Native\鍩硅鍦ㄧ嚎\build\C6B08D4B28F00001B4E5E1C220741923\build\platforms\android\cordova\build.bat: Command failed with exit code 8
    at ChildProcess.whenDone (F:\BaiduYunDownload\WeX5_V3.2\tools\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:743:16)
    at Process.ChildProcess._handle.onexit (child_process.js:810:5)
****ERROR****: Task "exec" finished with error.
****ERROR****: Target "buildAndroid" finished with error.
****ERROR****: Build finished with error.
****ERROR**** 错误信息: exec returned: 1
****ERROR**** 调用栈:


52

主题

209

帖子

482

积分

中级会员

Rank: 3Rank: 3

积分
482
QQ
 楼主| 发表于 2015-7-18 00:16:44 | 显示全部楼层
本帖最后由 hnytkeok 于 2015-7-18 16:21 编辑

Build started.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "path" started.
Task "path" finished.
Task "typedef" started.
Task "typedef" finished.
Target "saveLastPackConfig" started.
Task "propertyfile" started.
Updating property file: F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\build.properties
Task "propertyfile" finished.
Target "saveLastPackConfig" finished.
Target "compileUI" started.
Task "delete" started.
Deleting directory F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\www
Task "delete" finished.
Task "mkdir" started.
Created dir: F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\www
Task "mkdir" finished.
Task "compileUI" started.
Task "compileUI" finished.
Task "propertyfile" started.
Updating property file: F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\build.properties
Task "propertyfile" finished.
Target "compileUI" finished.
Target "processWWW" started.
Task "delete" started.
Task "delete" finished.
Task "mkdir" started.
Created dir: F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\build\www
Task "mkdir" finished.
Task "processWWW" started.
Task "processWWW" finished.
Task "propertyfile" started.
Updating property file: F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\build.properties
Task "propertyfile" finished.
Target "processWWW" finished.
Target "packUseAppBuilderServer" started.
Task "mkdir" started.
Created dir: F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\dist
Task "mkdir" finished.
Task "delete" started.
Task "delete" finished.
Task "zip" started.
Building zip: F:\BaiduYunDownload\WeX5_V3.2\model\Native\培训在线\build\x5.zip
Task "zip" finished.
Task "upload" started.
Task "upload" finished.
Task "pack" started.
****ERROR****: Task "pack" finished with error.
****ERROR****: Target "packUseAppBuilderServer" finished with error.
****ERROR****: Build finished with error.
****ERROR**** 错误信息: 执行HTTP请求失败,错误信息:生成app包失败!
错误原因:
错误栈:
exec returned: 1
服务端调用栈:
调用栈: at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643) at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669) at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292) at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at org.apache.tools.ant.Task.perform(Task.java:348) at org.apache.tools.ant.Target.execute(Target.java:435) at org.apache.tools.ant.Target.performTasks(Target.java:456) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393) at org.apache.tools.ant.Project.executeTarget(Project.java:1364) at com.justep.deploy.app.servlet.Pack.a(Unknown Source) at com.justep.deploy.app.servlet.Pack.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:751) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:566) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:578) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1111) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:498) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1045) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:98) at org.eclipse.jetty.server.Server.handle(Server.java:461) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:284) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:244) at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:534) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536) at java.lang.Thread.run(Thread.java:745)
****ERROR**** 调用栈:
at com.justep.tools.ant.task.HttpTask.processResponse(Unknown Source)
at com.justep.tools.ant.task.HttpTask.execute(Unknown Source)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
at sun.reflect.GeneratedMethodAccessor34.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)
at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
at Pack.execTask(Pack.java:44)
at Pack.access$000(Pack.java:25)
at Pack$1.run(Pack.java:97)
at java.lang.Thread.run(Thread.java:745)
回复 支持 反对

使用道具 举报

52

主题

209

帖子

482

积分

中级会员

Rank: 3Rank: 3

积分
482
QQ
 楼主| 发表于 2015-7-18 16:23:08 | 显示全部楼层
up 高手怎么办?
回复 支持 反对

使用道具 举报

发表于 2015-7-20 15:00:05 | 显示全部楼层

是用最新版本吗?现在还报错吗?
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

31

主题

1856

帖子

3070

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
3070
发表于 2015-7-23 18:32:58 | 显示全部楼层
代码问题,正式版本将解决
http://bbs.wex5.com/forum.php?mo ... page%3D3&page=2

14楼


Iterator<Object> iterator = params.keys();

这个是 http request这个插件的问题,你不选就可以,或者修改一下代码

Native\plugins\plugin.http.request\src\android\plugin\http\request\HttpRequest.java

56行

Iterator<String> iterator = params.keys();
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-23 23:33 , Processed in 0.055401 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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