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

QQ登录

只需一步,快速开始

查看: 1846|回复: 1

[处理中1] App打包报错

[复制链接]

1

主题

1

帖子

3

积分

新手上路

Rank: 1

积分
3
QQ
发表于 2016-11-9 10:15:40 | 显示全部楼层 |阅读模式
开始......
      
   生成应用环境准备:
      
   android应用环境准备:
      
   ios应用环境准备:
      
   生成android应用包:
      Running command: cmd "/s /c "E:\BaiduYunDownload\WeX5_V3.6\WeX5_V3.6\model\Native\fish\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
      ANDROID_HOME=E:\BaiduYunDownload\WeX5_V3.6\WeX5_V3.6\tools\adt-sdk
      JAVA_HOME=E:\BaiduYunDownload\WeX5_V3.6\WeX5_V3.6\java\jre1.8
      Running: E:\BaiduYunDownload\WeX5_V3.6\WeX5_V3.6\model\Native\fish\build\src\platforms\android\gradlew cdvBuildDebug -b E:\BaiduYunDownload\WeX5_V3.6\WeX5_V3.6\model\Native\fish\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
      Starting a new Gradle Daemon for this build (subsequent builds will be faster).
      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
      :JustepGetContent:mergeReleaseResources
      E:\BaiduYunDownload\WeX5_V3.6\WeX5_V3.6\model\Native\fish\build\src\platforms\android\JustepGetContent\build\intermediates\exploded-aar\com.android.support\appcompat-v7\22.2.0\res\drawable-xhdpi\abc_textfield_search_activated_mtrl_alpha.9.png: Error: File path too long on Windows, keep below 240 characters : E:\BaiduYunDownload\WeX5_V3.6\WeX5_V3.6\model\Native\fish\build\src\platforms\android\JustepGetContent\build\intermediates\exploded-aar\com.android.support\appcompat-v7\22.2.0\res\drawable-xhdpi\abc_textfield_search_activated_mtrl_alpha.9.png
      :JustepGetContent:mergeReleaseResources FAILED
      
      BUILD FAILED
      
      Total time: 30.278 secs
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':JustepGetContent:mergeReleaseResources'.
      > E:\BaiduYunDownload\WeX5_V3.6\WeX5_V3.6\model\Native\fish\build\src\platforms\android\JustepGetContent\build\intermediates\exploded-aar\com.android.support\appcompat-v7\22.2.0\res\drawable-xhdpi\abc_textfield_search_activated_mtrl_alpha.9.png: Error: File path too long on Windows, keep below 240 characters : E:\BaiduYunDownload\WeX5_V3.6\WeX5_V3.6\model\Native\fish\build\src\platforms\android\JustepGetContent\build\intermediates\exploded-aar\com.android.support\appcompat-v7\22.2.0\res\drawable-xhdpi\abc_textfield_search_activated_mtrl_alpha.9.png
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
   C:\Users\ADMINI~1\AppData\Local\Temp\822441ff-adf6-44f6-a80e-2020463cfd0c\pack.xml:88: exec returned: 1
           at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
      ERROR building one of the platforms: Error: cmd: Command failed with exit code 1        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
   
           at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
      You may not have the required environment or OS to build this project
      
           at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
           at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)   E:\BaiduYunDownload\WeX5_V3.6\WeX5_V3.6\model\Native\fish\build\src\platforms\android\cordova\node_modules\q\q.js:126
   
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)                       throw e;
   
           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)
      Error code 1 for command: cmd with args: /s /c "E:\BaiduYunDownload\WeX5_V3.6\WeX5_V3.6\model\Native\fish\build\src\platforms\android\gradlew cdvBuildDebug -b E:\BaiduYunDownload\WeX5_V3.6\WeX5_V3.6\model\Native\fish\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline"
      Error: cmd: Command failed with exit code 1
   ****ERROR****: 子任务 "exec" 执行失败。
   ****ERROR****: 任务 "buildAndroid" 执行失败。
           at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)****ERROR****: 执行出错:
           at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
   
           at com.justep.deploy.app.utils.BuildHelper.execTask(Unknown Source)****ERROR****: 错误信息: exec returned: 1
           at com.justep.deploy.app.utils.Builder.main(Unknown Source)
   
   ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
****ERROR****: 子任务 "java" 执行失败。
****ERROR****: 任务 "pack" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: -3
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html

大神们,怎么解决

1

主题

3232

帖子

1174

积分

金牌会员

Rank: 6Rank: 6

积分
1174
QQ
发表于 2016-11-9 13:58:12 | 显示全部楼层
你把wex5 解压到哪里了? 报错说路径太长了。要把wex5解压到根目录下,不要到解压桌面或者有空格的目录下
在问题解决后,希望大家可以吧解决方法也分享一下,这样可以让更多的X5开发者共同进步,谢谢大家的知识共享
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-16 02:39 , Processed in 0.064487 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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