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

QQ登录

只需一步,快速开始

查看: 1922|回复: 0

[分享] 生成native app时报错及解决方法

[复制链接]

1

主题

12

帖子

20

积分

新手上路

Rank: 1

积分
20
QQ
发表于 2017-3-13 14:53:31 | 显示全部楼层 |阅读模式
本人在机房安装weX5,因机房设置还原卡,并只有C盘,在Native 文件夹生成app时最后一 步出错,报错信息如下:

生成android应用包:
      Running command: cmd "/s /c "C:\WeX5\model\Native\account\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
      ANDROID_HOME=C:\WeX5\tools\adt-sdk
      JAVA_HOME=C:\WeX5\java\jre1.8
      Running: C:\WeX5\model\Native\account\build\src\platforms\android\gradlew cdvBuildDebug -b C:\WeX5\model\Native\account\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
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      java.io.IOException: 设备未就绪。
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      
      C:\WeX5\model\Native\account\build\src\platforms\android\cordova\node_modules\q\q.js:126
                          throw e;
                          ^
      Error code 1 for command: cmd with args: /s /c "C:\WeX5\model\Native\account\build\src\platforms\android\gradlew cdvBuildDebug -b C:\WeX5\model\Native\account\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://bbs.wex5.com/thread-82002-1-1.html

原因:D盘只读或是光盘
解决方法:
修改D盘盘符为E及之后字母,http://jingyan.baidu.com/article/92255446874061851648f4ed.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-5-1 15:11 , Processed in 0.108771 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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