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

QQ登录

只需一步,快速开始

查看: 2030|回复: 2

[结贴] 打包时出错

[复制链接]

5

主题

12

帖子

28

积分

新手上路

Rank: 1

积分
28
QQ
发表于 2017-1-18 00:26:12 | 显示全部楼层 |阅读模式
生成android应用包:
      Running command: cmd "/s /c "F:\BaiduNetdiskDownload\WeX5_V3.6\WeX5_V3.6\model\Native\nihao\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
      ANDROID_HOME=F:\BaiduNetdiskDownload\WeX5_V3.6\WeX5_V3.6\tools\adt-sdk
      JAVA_HOME=F:\BaiduNetdiskDownload\WeX5_V3.6\WeX5_V3.6\java\jre1.8
      Running: F:\BaiduNetdiskDownload\WeX5_V3.6\WeX5_V3.6\model\Native\nihao\build\src\platforms\android\gradlew cdvBuildDebug -b F:\BaiduNetdiskDownload\WeX5_V3.6\WeX5_V3.6\model\Native\nihao\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
      Incremental java compilation is an incubating feature.
      :preBuild UP-TO-DATE
      :preDebugBuild UP-TO-DATE
      :checkDebugManifest
      :CordovaLib:preBuild UP-TO-DATE
      :CordovaLib:preDebugBuild UP-TO-DATE
      :CordovaLib:compileDebugNdk UP-TO-DATE
      :CordovaLib:compileLint
      :CordovaLib:copyDebugLint UP-TO-DATE
      :CordovaLib:checkDebugManifest
      :CordovaLib:preDebugAndroidTestBuild UP-TO-DATE
      :CordovaLib:preDebugUnitTestBuild UP-TO-DATE
      :CordovaLib:preReleaseBuild UP-TO-DATE
      :CordovaLib:preReleaseUnitTestBuild UP-TO-DATE
      :JustepGetContent:preBuild UP-TO-DATE
      :JustepGetContent:preReleaseBuild UP-TO-DATE
      :JustepGetContent:compileReleaseNdk UP-TO-DATE
      :JustepGetContent:compileLint
      :JustepGetContent:copyReleaseLint UP-TO-DATE
      :JustepGetContent:checkReleaseManifest
      :JustepGetContent:preDebugAndroidTestBuild UP-TO-DATE
      :JustepGetContent:preDebugBuild UP-TO-DATE
      :JustepGetContent:preDebugUnitTestBuild UP-TO-DATE
      :JustepGetContent:preReleaseUnitTestBuild UP-TO-DATE
      :JustepGetContent:prepareComAndroidSupportAppcompatV72220Library
      :JustepGetContent:prepareComAndroidSupportSupportV42220Library
      :JustepGetContent:prepareReleaseDependencies
      :JustepGetContent:compileReleaseAidl
      :JustepGetContent:compileReleaseRenderscript
      :JustepGetContent:generateReleaseBuildConfig
      :JustepGetContent:generateReleaseAssets UP-TO-DATE
      :JustepGetContent:mergeReleaseAssets
      :JustepGetContent:generateReleaseResValues
      :JustepGetContent:generateReleaseResources
      
      FAILURE: Build failed with an exception.
      :JustepGetContent:mergeReleaseResources
      * What went wrong:
      
      Execution failed for task ':JustepGetContent:mergeReleaseResources'.
      F:\BaiduNetdiskDownload\WeX5_V3.6\WeX5_V3.6\model\Native\nihao\build\src\platforms\android\JustepGetContent\build\intermediates\exploded-aar\com.android.support\appcompat-v7\22.2.0\res\drawable-xhdpi\abc_list_selector_disabled_holo_light.9.png: Error: File path too long on Windows, keep below 240 characters : F:\BaiduNetdiskDownload\WeX5_V3.6\WeX5_V3.6\model\Native\nihao\build\src\platforms\android\JustepGetContent\build\intermediates\exploded-aar\com.android.support\appcompat-v7\22.2.0\res\drawable-xhdpi\abc_list_selector_disabled_holo_light.9.png
      :JustepGetContent:mergeReleaseResources FAILED
      > F:\BaiduNetdiskDownload\WeX5_V3.6\WeX5_V3.6\model\Native\nihao\build\src\platforms\android\JustepGetContent\build\intermediates\exploded-aar\com.android.support\appcompat-v7\22.2.0\res\drawable-xhdpi\abc_list_selector_disabled_holo_light.9.png: Error: File path too long on Windows, keep below 240 characters : F:\BaiduNetdiskDownload\WeX5_V3.6\WeX5_V3.6\model\Native\nihao\build\src\platforms\android\JustepGetContent\build\intermediates\exploded-aar\com.android.support\appcompat-v7\22.2.0\res\drawable-xhdpi\abc_list_selector_disabled_holo_light.9.png
      BUILD FAILED
      
      
      
      * Try:
      Total time: 6.672 secs
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      
      F:\BaiduNetdiskDownload\WeX5_V3.6\WeX5_V3.6\model\Native\nihao\build\src\platforms\android\cordova\node_modules\q\q.js:126
                          throw e;
                          ^
      Error code 1 for command: cmd with args: /s /c "F:\BaiduNetdiskDownload\WeX5_V3.6\WeX5_V3.6\model\Native\nihao\build\src\platforms\android\gradlew cdvBuildDebug -b F:\BaiduNetdiskDownload\WeX5_V3.6\WeX5_V3.6\model\Native\nihao\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline"
      ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
      You may not have the required environment or OS to build this project
      Error: cmd: Command failed with exit code 1
   ****ERROR****: 子任务 "exec" 执行失败。
   ****ERROR****: 任务 "buildAndroid" 执行失败。
   ****ERROR****: 执行出错:
   ****ERROR****: 错误信息: exec returned: 1
   ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
   C:\Users\hppc\AppData\Local\Temp\8d86f933-f510-44bc-b9a8-086a8ca360b0\pack.xml:88: 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.GeneratedMethodAccessor4.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           at java.lang.reflect.Method.invoke(Method.java:497)
           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.utils.BuildHelper.execTask(Unknown Source)
           at com.justep.deploy.app.utils.Builder.main(Unknown Source)
****ERROR****: 子任务 "java" 执行失败。
****ERROR****: 任务 "pack" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: -3
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
发表于 2017-1-18 10:34:24 | 显示全部楼层
File path too long on Windows, keep below 240 characters :

目录结构太长了!
建议WeX5解压在根目录上的文件夹下!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

5

主题

12

帖子

28

积分

新手上路

Rank: 1

积分
28
QQ
 楼主| 发表于 2017-1-18 11:17:05 | 显示全部楼层
liangyongfei 发表于 2017-1-18 10:34
File path too long on Windows, keep below 240 characters :

目录结构太长了!

已经解决,谢谢
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-22 01:41 , Processed in 0.053861 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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