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

QQ登录

只需一步,快速开始

楼主: liangshaohua

[分享] App打包常见报错

  [复制链接]

4

主题

14

帖子

52

积分

初级会员

Rank: 2

积分
52
QQ
发表于 2016-3-24 21:02:08 | 显示全部楼层
ios打包错误

** BUILD FAILED **


The following build commands failed:
        CompileC build/X5.build/Debug-iphoneos/X5.build/Objects-normal/armv7/CBPeripheral+Extensions.o X5/Plugins/com.megster.cordova.ble/BLECentralPlugin/CBPeripheral+Extensions.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(1 failure)
Error: /Users/zejie/Documents/WeX5/model/Native/.workspace/C70109D0D47000019FF31DF0FF449B50/build/platforms/ios/cordova/build: Command failed with exit code 65
    at ChildProcess.whenDone (/Users/zejie/Documents/WeX5/tools/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)
****ERROR****: Task "exec" finished with error.
****ERROR****: Target "buildIOS" finished with error.
****ERROR****: Build finished with error.
****ERROR****: 错误信息: exec returned: 1
****ERROR****: 如不能确定具体问题,可参考常见问题: http://wex5.com/cn/bbs/thread-82002-1-1.html
回复 支持 反对

使用道具 举报

26

主题

107

帖子

193

积分

初级会员

Rank: 2

积分
193
QQ
发表于 2016-3-25 15:47:52 | 显示全部楼层
574785182 发表于 2016-3-24 21:02
ios打包错误

** BUILD FAILED **

解决了吗,我的错误和你一模一样。
回复 支持 反对

使用道具 举报

27

主题

89

帖子

253

积分

中级会员

Rank: 3Rank: 3

积分
253
QQ
发表于 2016-3-28 15:12:32 | 显示全部楼层
BUILD FAILED
   C:\WeX5\tools\adt-sdk\tools\ant\build.xml:888: The following error occurred while executing this line:
   C:\WeX5\tools\adt-sdk\tools\ant\build.xml:890: The following error occurred while executing this line:
   C:\WeX5\tools\adt-sdk\tools\ant\build.xml:902: The following error occurred while executing this line:
   C:\WeX5\tools\adt-sdk\tools\ant\build.xml:283: null returned: 1
   
   Total time: 3 seconds
   
   C:\WeX5\model\Native\waimai\build\src\platforms\android\cordova\node_modules\q\q.js:126
                       throw e;
                             ^
   Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,C:\WeX5\model\Native\waimai\build\src\platforms\android\build.xml
          [dx] Error occurred during initialization of VM
          [dx] Could not reserve enough space for object heap
          [dx] Error: Could not create the Java Virtual Machine.
          [dx] Error: A fatal exception has occurred. Program will exit.
   Error: C:\WeX5\model\Native\waimai\build\src\platforms\android\cordova\build.bat: Command failed with exit code 8
       at ChildProcess.whenDone (C:\WeX5\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****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "buildAndroid" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: exec returned: 1
****ERROR****: 如不能确定具体问题,可参考常见问题: http://wex5.com/cn/bbs/thread-82002-1-1.html
回复 支持 反对

使用道具 举报

10

主题

63

帖子

111

积分

初级会员

Rank: 2

积分
111
QQ
发表于 2016-3-29 07:31:54 来自手机 | 显示全部楼层
开始......     保存配置信息:     编译UI资源:     清除编译环境:     复制模版工程:     复制工程:     复制插件:     复制WWW资源:     更新工程信息:     增加插件:    使用到的插件: [cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils, cordova-plugin-app-version, cordova-plugin-inappbrowser, cordova-plugin-x-toast]    开始准备插件参数......    插件参数准备完成    开始安装插件......    Installing "cordova-plugin-splashscreen" for android    Installing "cordova-plugin-splashscreen" for ios    Installing "cordova-plugin-app-preferences" for android    Installing "cordova-plugin-app-preferences" for ios    Installing "cordova-plugin-file" for android    Installing "cordova-plugin-file" for ios    Installing "cordova-plugin-file-transfer" for android    Dependent plugin "cordova-plugin-file" already installed on android.    Installing "cordova-plugin-file-transfer" for ios    Dependent plugin "cordova-plugin-file" already installed on ios.    Installing "cordova-plugin-network-information" for android    Installing "cordova-plugin-network-information" for ios    Installing "cordova-plugin-zip" for android    Dependent plugin "cordova-plugin-file" already installed on android.    Installing "cordova-plugin-zip" for ios    Dependent plugin "cordova-plugin-file" already installed on ios.    Installing "cordova-plugin-inappbrowser" for android    Installing "cordova-plugin-inappbrowser" for ios    Installing "cordova-plugin-x-toast" for android    Installing "cordova-plugin-x-toast" for ios    Installing "com.justep.cordova.plugin.app.utils" for android    Dependent plugin "cordova-plugin-file" already installed on android.    Dependent plugin "cordova-plugin-file-transfer" already installed on android.    Dependent plugin "cordova-plugin-network-information" already installed on android.    Dependent plugin "cordova-plugin-zip" already installed on android.    Dependent plugin "cordova-plugin-inappbrowser" already installed on android.    Dependent plugin "cordova-plugin-x-toast" already installed on android.    Installing "com.justep.cordova.plugin.app.utils" for ios    Dependent plugin "cordova-plugin-file" already installed on ios.    Dependent plugin "cordova-plugin-file-transfer" already installed on ios.    Dependent plugin "cordova-plugin-network-information" already installed on ios.    Dependent plugin "cordova-plugin-zip" already installed on ios.    Dependent plugin "cordova-plugin-inappbrowser" already installed on ios.    Dependent plugin "cordova-plugin-x-toast" already installed on ios.    Installing "cordova-plugin-app-version" for android    Installing "cordova-plugin-app-version" for ios    插件安装完成     创建源代码工程:     android应用环境准备:     ios应用环境准备:     生成android应用包:    Running command: cmd "/s /c "D:\WeX5_V3.4Pre\model\Native\upload\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""    ANDROID_HOME=D:\WeX5_V3.4Pre/tools/adt-sdk    JAVA_HOME=D:\WeX5_V3.4Pre/java/jre1.7    Running: D:\WeX5_V3.4Pre\model\Native\upload\build\src\platforms\android\gradlew cdvBuildDebug -b D:\WeX5_V3.4Pre\model\Native\upload\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:    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 object heap    Error: Could not create the Java Virtual Machine.    Error: A fatal exception has occurred. Program will exit.            * Try:    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.        D:\WeX5_V3.4Pre\model\Native\upload\build\src\platforms\android\cordova\node_modules\q\q.js:126                        throw e;                        ^    Error code 1 for command: cmd with args: /s /c "D:\WeX5_V3.4Pre\model\Native\upload\build\src\platforms\android\gradlew cdvBuildDebug -b D:\WeX5_V3.4Pre\model\Native\upload\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
回复 支持 反对

使用道具 举报

10

主题

63

帖子

111

积分

初级会员

Rank: 2

积分
111
QQ
发表于 2016-3-29 08:48:28 | 显示全部楼层
开始......
   
保存配置信息:
   
编译UI资源:
   
清除编译环境:
   
复制模版工程:
   
复制工程:
   
复制插件:
   
复制WWW资源:
   
更新工程信息:
   
增加插件:
   使用到的插件: [cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils, cordova-plugin-app-version, cordova-plugin-inappbrowser, cordova-plugin-x-toast]
   开始准备插件参数......
   插件参数准备完成
   开始安装插件......
   Installing "cordova-plugin-splashscreen" for android
   Installing "cordova-plugin-splashscreen" for ios
   Installing "cordova-plugin-app-preferences" for android
   Installing "cordova-plugin-app-preferences" for ios
   Installing "cordova-plugin-file" for android
   Installing "cordova-plugin-file" for ios
   Installing "cordova-plugin-file-transfer" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Installing "cordova-plugin-file-transfer" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Installing "cordova-plugin-network-information" for android
   Installing "cordova-plugin-network-information" for ios
   Installing "cordova-plugin-zip" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Installing "cordova-plugin-zip" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Installing "cordova-plugin-inappbrowser" for android
   Installing "cordova-plugin-inappbrowser" for ios
   Installing "cordova-plugin-x-toast" for android
   Installing "cordova-plugin-x-toast" for ios
   Installing "com.justep.cordova.plugin.app.utils" for android
   Dependent plugin "cordova-plugin-file" already installed on android.
   Dependent plugin "cordova-plugin-file-transfer" already installed on android.
   Dependent plugin "cordova-plugin-network-information" already installed on android.
   Dependent plugin "cordova-plugin-zip" already installed on android.
   Dependent plugin "cordova-plugin-inappbrowser" already installed on android.
   Dependent plugin "cordova-plugin-x-toast" already installed on android.
   Installing "com.justep.cordova.plugin.app.utils" for ios
   Dependent plugin "cordova-plugin-file" already installed on ios.
   Dependent plugin "cordova-plugin-file-transfer" already installed on ios.
   Dependent plugin "cordova-plugin-network-information" already installed on ios.
   Dependent plugin "cordova-plugin-zip" already installed on ios.
   Dependent plugin "cordova-plugin-inappbrowser" already installed on ios.
   Dependent plugin "cordova-plugin-x-toast" already installed on ios.
   Installing "cordova-plugin-app-version" for android
   Installing "cordova-plugin-app-version" for ios
   插件安装完成
   
创建源代码工程:
   
android应用环境准备:
   
ios应用环境准备:
   
生成android应用包:
   Running command: cmd "/s /c "D:\WeX5_V3.4Pre\model\Native\upload\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
   ANDROID_HOME=D:\WeX5_V3.4Pre/tools/adt-sdk
   JAVA_HOME=D:\WeX5_V3.4Pre/java/jre1.7
   Running: D:\WeX5_V3.4Pre\model\Native\upload\build\src\platforms\android\gradlew cdvBuildDebug -b D:\WeX5_V3.4Pre\model\Native\upload\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:
   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 object heap
   Error: Could not create the Java Virtual Machine.
   Error: A fatal exception has occurred. Program will exit.
   
   
   * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
   
   D:\WeX5_V3.4Pre\model\Native\upload\build\src\platforms\android\cordova\node_modules\q\q.js:126
                       throw e;
                       ^
   Error code 1 for command: cmd with args: /s /c "D:\WeX5_V3.4Pre\model\Native\upload\build\src\platforms\android\gradlew cdvBuildDebug -b D:\WeX5_V3.4Pre\model\Native\upload\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
本主题由 liangyongfei 于 昨天 17:28 分类
回复 支持 反对

使用道具 举报

4

主题

14

帖子

52

积分

初级会员

Rank: 2

积分
52
QQ
发表于 2016-3-29 10:22:38 | 显示全部楼层
路小佳 发表于 2016-3-25 15:47
解决了吗,我的错误和你一模一样。

你打包的IOS 有用到蓝牙插件么?
回复 支持 反对

使用道具 举报

4

主题

14

帖子

52

积分

初级会员

Rank: 2

积分
52
QQ
发表于 2016-3-29 10:39:34 | 显示全部楼层
/Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/X5/Plugins/com.megster.cordova.ble/BLECentralPlugin/BLECentralPlugin.m:84:34: error: property 'isConnected' not found on object of type 'CBPeripheral *'    if (peripheral && peripheral.isConnected) {                                 ^/Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/X5/Plugins/com.megster.cordova.ble/BLECentralPlugin/BLECentralPlugin.m:290:35: error: no visible @interface for 'CBPeripheral' declares the selector 'isConnected'    if (peripheral && [peripheral isConnected]) {                       ~~~~~~~~~~ ^~~~~~~~~~~/Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/X5/Plugins/com.megster.cordova.ble/BLECentralPlugin/BLECentralPlugin.m:329:70: warning: enum values with underlying type 'NSInteger' should not be used as format arguments; add an explicit cast to 'long' instead [-Wformat]    NSLog(@"Status of CoreBluetooth central manager changed %ld %@", central.state, [self centralManagerStateToString: central.state]);                                                            ~~~      ^~~~~~~~~~~~~                                                                     (long)/Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/X5/Plugins/com.megster.cordova.ble/BLECentralPlugin/BLECentralPlugin.m:512:71: error: property 'UUID' not found on object of type 'CBPeripheral *'        NSString* other = CFBridgingRelease(CFUUIDCreateString(nil, p.UUID));                                                                      ^CompileC build/X5.build/Debug-iphoneos/X5.build/Objects-normal/armv7/CBPeripheral+Extensions.o X5/Plugins/com.megster.cordova.ble/BLECentralPlugin/CBPeripheral+Extensions.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler    cd /Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios    export LANG=en_US.US-ASCII    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/zejie/Documents/WeX5/node:/usr/bin:/bin:/usr/sbin:/sbin"    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch armv7 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -gmodules -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS9.2.sdk -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -miphoneos-version-min=6.0 -g -fvisibility=hidden -Wno-sign-conversion -iquote /Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/odbapp-generated-files.hmap -I/Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/odbapp-own-target-headers.hmap -I/Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/odbapp-all-target-headers.hmap -iquote /Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/odbapp-project-headers.hmap -I/Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/build/device/include -I/Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/build/device/usr/local/lib/include -I/Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/build/UninstalledProducts/include -I/Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/build/device -IX5/Plugins -IX5/Plugins/com.brodysoft.sqlitePlugin -IX5/Plugins/com.megster.cordova.ble -IX5/Plugins/me.apla.cordova.plugin.app.preferences -IX5/Plugins/org.apache.cordova.device -IX5/Plugins/org.apache.cordova.splashscreen -IX5/Plugins/com.megster.cordova.ble/BLECentralPlugin -I/Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/DerivedSources/armv7 -I/Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/DerivedSources -F/Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/build/device -include /var/folders/3h/g5sfj07d3g7c0swdpjq6l0k80000gn/C/com.apple.DeveloperTools/7.2.1-7C1002/Xcode/SharedPrecompiledHeaders/X5-Prefix-eusszgzedkjqfuabbndlbxzjtzye/X5-Prefix.pch -MMD -MT dependencies -MF /Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/Objects-normal/armv7/CBPeripheral+Extensions.d --serialize-diagnostics /Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/Objects-normal/armv7/CBPeripheral+Extensions.dia -c /Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/X5/Plugins/com.megster.cordova.ble/BLECentralPlugin/CBPeripheral+Extensions.m -o /Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/build/X5.build/Debug-iphoneos/X5.build/Objects-normal/armv7/CBPeripheral+Extensions.o/Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/X5/Plugins/com.megster.cordova.ble/BLECentralPlugin/CBPeripheral+Extensions.m:27:15: error: no visible @interface for 'CBPeripheral' declares the selector 'UUID'    if ([self UUID]) {         ~~~~ ^~~~/Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/X5/Plugins/com.megster.cordova.ble/BLECentralPlugin/CBPeripheral+Extensions.m:28:76: error: property 'UUID' not found on object of type 'CBPeripheral *'        return (__bridge_transfer NSString *)CFUUIDCreateString(NULL, self.UUID);                                                                           ^/Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/X5/Plugins/com.megster.cordova.ble/BLECentralPlugin/CBPeripheral+Extensions.m:38:15: error: no visible @interface for 'CBPeripheral' declares the selector 'UUID'    if ([self UUID]) {         ~~~~ ^~~~/Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/X5/Plugins/com.megster.cordova.ble/BLECentralPlugin/CBPeripheral+Extensions.m:39:82: error: property 'UUID' not found on object of type 'CBPeripheral *'        uuidString = (__bridge_transfer NSString *)CFUUIDCreateString(NULL, self.UUID);                                                                                 ^4 errors generated.** BUILD FAILED **The following build commands failed:        CompileC build/X5.build/Debug-iphoneos/X5.build/Objects-normal/armv7/CBPeripheral+Extensions.o X5/Plugins/com.megster.cordova.ble/BLECentralPlugin/CBPeripheral+Extensions.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler(1 failure)Error: /Users/zejie/Documents/WeX5/model/Native/.workspace/C6F089F839200001F4C97CB095B012F7/build/platforms/ios/cordova/build: Command failed with exit code 65    at ChildProcess.whenDone (/Users/zejie/Documents/WeX5/tools/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)    at ChildProcess.emit (events.js:98:17)    at maybeClose (child_process.js:756:16)    at Process.ChildProcess._handle.onexit (child_process.js:823:5)****ERROR****: Task "exec" finished with error.****ERROR****: Target "buildIOS" finished with error.****ERROR****: Build finished with error.****ERROR****: 错误信息: exec returned: 1****ERROR****: 如不能确定具体问题,可参考常见问题: http://wex5.com/cn/bbs/thread-82002-1-1.html
回复 支持 反对

使用道具 举报

0

主题

2

帖子

6

积分

新手上路

Rank: 1

积分
6
QQ
发表于 2016-4-1 01:10:36 | 显示全部楼层
  BUILD FAILED
   
   Total time: 1 mins 4.816 secs
   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:\WeX5_V3.4\model\Native\ddhhello\build\src\platforms\android\cordova\node_modules\q\q.js:126
                       throw e;
                       ^
   Error code 1 for command: cmd with args: /s /c "D:\WeX5_V3.4\model\Native\ddhhello\build\src\platforms\android\gradlew cdvBuildDebug -b D:\WeX5_V3.4\model\Native\ddhhello\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
回复 支持 反对

使用道具 举报

11

主题

163

帖子

761

积分

高级会员

Rank: 4

积分
761
QQ
发表于 2016-4-1 11:19:49 | 显示全部楼层
回复

使用道具 举报

16

主题

51

帖子

129

积分

初级会员

Rank: 2

积分
129
QQ
发表于 2016-4-1 15:58:37 | 显示全部楼层
大家这个是怎么解决的啊???

生成android应用包:
   Running command: cmd "/s /c "C:\WeX5V34\model\Native\vgo\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
   ANDROID_HOME=C:\WeX5V34/tools/adt-sdk
   JAVA_HOME=C:\WeX5V34/java/jre1.8
   Running: C:\WeX5V34\model\Native\vgo\build\src\platforms\android\gradlew cdvBuildDebug -b C:\WeX5V34\model\Native\vgo\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
   
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   java.io.IOException: The device is not ready
   
   * 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
   
   C:\WeX5V34\model\Native\vgo\build\src\platforms\android\cordova\node_modules\q\q.js:126
                       throw e;
                       ^
   Error code 1 for command: cmd with args: /s /c "C:\WeX5V34\model\Native\vgo\build\src\platforms\android\gradlew cdvBuildDebug -b C:\WeX5V34\model\Native\vgo\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
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-23 17:35 , Processed in 0.057715 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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