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

QQ登录

只需一步,快速开始

查看: 777|回复: 1

[处理中3] android 打包报错

[复制链接]

1

主题

2

帖子

10

积分

新手上路

Rank: 1

积分
10
QQ
发表于 2016-4-30 18:44:56 | 显示全部楼层 |阅读模式
android 打包报错,看不出来具体缺少了什么,提示如下:


创建源代码工程:
   
android应用环境准备:
   
ios应用环境准备:
   
生成android应用包:
   Running command: cmd "/s /c "D:\Work\WeX5_V3.4\model\Native\澶栧崠\build\src\platforms\android\cordova\build.bat --release --gradleArg=--offline""
   ANDROID_HOME=D:\Work\WeX5_V3.4/tools/adt-sdk
   JAVA_HOME=D:\Work\WeX5_V3.4/java/jre1.8
   Running: D:\Work\WeX5_V3.4\model\Native\澶栧崠\build\src\platforms\android\gradlew cdvBuildRelease -b D:\Work\WeX5_V3.4\model\Native\澶栧崠\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
   
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Unable to start the daemon process.
   This problem might be caused by incorrect configuration of the daemon.
   For example, an unrecognized jvm option is used.
   Please refer to the user guide chapter on the daemon at http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html
   Please read the following process output to find out more:
   -----------------------
   Error occurred during initialization of VM
   Could not reserve enough space for 1048576KB object heap
   Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
   
   
   * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
   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
   
   D:\Work\WeX5_V3.4\model\Native\澶栧崠\build\src\platforms\android\cordova\node_modules\q\q.js:126
                       throw e;
                       ^
   Error code 1 for command: cmd with args: /s /c "D:\Work\WeX5_V3.4\model\Native\澶栧崠\build\src\platforms\android\gradlew cdvBuildRelease -b D:\Work\WeX5_V3.4\model\Native\澶栧崠\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline"
   Error: cmd: Command failed with exit code 1
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "buildAndroid" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: exec returned: 1
****ERROR****: 如不能确定具体问题,可参考常见问题: http://wex5.com/cn/bbs/thread-82002-1-1.html
发表于 2016-5-4 09:28:49 | 显示全部楼层
看上去是这个问题
内存不足的原因
http://bbs.wex5.com/forum.php?mo ... 2&pid=165192095


根据错误信息,先在这个帖子中找下原因:http://wex5.com/cn/bbs/thread-82002-1-1.html
        或者论坛搜下,
        如果还是找不到原因,建议把Native下自己app应用的log\build.log文件发一下
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-24 16:41 , Processed in 0.103326 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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