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

QQ登录

只需一步,快速开始

楼主: liangshaohua

[分享] App打包常见报错

  [复制链接]

0

主题

1

帖子

3

积分

新手上路

Rank: 1

积分
3
QQ
发表于 2017-9-25 08:12:02 | 显示全部楼层
WeX5_V3.7打包最简单的入门示例程序hello错误,打包生成app失败:
2017-09-24 08:44:34 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO: 生成android应用包:
2017-09-24 08:44:36 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    Running command: cmd "/s /c "E:\WeX5_V3.7\model\Native\hello\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    ANDROID_HOME=E:\WeX5_V3.7\tools\adt-sdk
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    JAVA_HOME=E:\WeX5_V3.7\java\jre1.8
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    Running: E:\WeX5_V3.7\model\Native\hello\build\src\platforms\android\gradlew cdvBuildDebug -b E:\WeX5_V3.7\model\Native\hello\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    Could not load Logmanager "org.apache.juli.ClassLoaderLogManager"
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    java.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:            at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:            at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:            at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:            at java.util.logging.LogManager$1.run(LogManager.java:195)
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:            at java.util.logging.LogManager$1.run(LogManager.java:181)
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:            at java.security.AccessController.doPrivileged(Native Method)
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:            at java.util.logging.LogManager.<clinit>(LogManager.java:181)
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:            at java.util.logging.Logger.demandLogger(Logger.java:448)
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:            at java.util.logging.Logger.getLogger(Logger.java:502)
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:            at com.sun.jmx.remote.util.ClassLogger.<init>(ClassLogger.java:55)
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:            at sun.management.jmxremote.ConnectorBootstrap.<clinit>(ConnectorBootstrap.java:814)
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:            at sun.management.Agent.startLocalManagementAgent(Agent.java:138)
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:            at sun.management.Agent.startAgent(Agent.java:260)
2017-09-24 08:44:38 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:            at sun.management.Agent.startAgent(Agent.java:447)
2017-09-24 08:44:40 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:   
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    BUILD FAILED
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:   
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    Total time: 6.119 secs
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:   
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    FAILURE: Build failed with an exception.
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:   
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    * What went wrong:
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    A problem occurred configuring root project 'android'.
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    > Could not resolve all dependencies for configuration ':classpath'.
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:       > Could not resolve com.android.tools.build:gradle:2.3.0.
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:         Required by:
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:             project :
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:          > No cached version of com.android.tools.build:gradle:2.3.0 available for offline mode.
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:          > No cached version of com.android.tools.build:gradle:2.3.0 available for offline mode.
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:   
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    * Try:
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    You may not have the required environment or OS to build this project
2017-09-24 08:44:44 [Thread-29] [org.apache.tools.ant.taskdefs.Java] INFO: C:\Users\Administrator\AppData\Local\Temp\fe08d298-ffb4-45bf-ab06-65b9d35f2cb4\pack.xml:91: exec returned: 1
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    Java HotSpot(TM) Client VM warning: ignoring option PermSize=128M; support was removed in 8.0
2017-09-24 08:44:44 [Thread-29] [org.apache.tools.ant.taskdefs.Java] INFO:         at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    Java HotSpot(TM) Client VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0        at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
2017-09-24 08:44:44 [Thread-29] [org.apache.tools.ant.taskdefs.Java] INFO:
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    Java HotSpot(TM) Client VM warning: MaxNewSize (262144k) is equal to or greater than the entire heap (262144k).  A new max generation size of 262080k will be used.
2017-09-24 08:44:44 [Thread-29] [org.apache.tools.ant.taskdefs.Java] INFO:         at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)   
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:
2017-09-24 08:44:44 [Thread-29] [org.apache.tools.ant.taskdefs.Java] INFO:         at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)   E:\WeX5_V3.7\model\Native\hello\build\src\platforms\android\cordova\node_modules\q\q.js:126
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:         at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
2017-09-24 08:44:44 [Thread-29] [org.apache.tools.ant.taskdefs.Java] INFO:
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:                        throw e;
2017-09-24 08:44:44 [Thread-29] [org.apache.tools.ant.taskdefs.Java] INFO:         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)                       ^
2017-09-24 08:44:44 [Thread-29] [org.apache.tools.ant.taskdefs.Java] INFO:         at java.lang.reflect.Method.invoke(Method.java:497)
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    Error code 1 for command: cmd with args: /s /c "E:\WeX5_V3.7\model\Native\hello\build\src\platforms\android\gradlew cdvBuildDebug -b E:\WeX5_V3.7\model\Native\hello\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline"        at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
2017-09-24 08:44:44 [Thread-29] [org.apache.tools.ant.taskdefs.Java] INFO:
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO:    Error: cmd: Command failed with exit code 1        at org.apache.tools.ant.Task.perform(Task.java:348)
2017-09-24 08:44:44 [Thread-29] [org.apache.tools.ant.taskdefs.Java] INFO:
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO: ****ERROR****: 子任务 "exec" 执行失败。
2017-09-24 08:44:44 [Thread-29] [org.apache.tools.ant.taskdefs.Java] INFO:         at org.apache.tools.ant.Target.execute(Target.java:435)
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO: ****ERROR****: 任务 "buildAndroid" 执行失败。        at org.apache.tools.ant.Target.performTasks(Target.java:456)
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO: ****ERROR****: 执行出错:
2017-09-24 08:44:44 [Thread-28] [org.apache.tools.ant.taskdefs.Java] INFO: ****ERROR****: 错误信息: exec returned: 1
2017-09-24 08:44:44 [Thread-29] [org.apache.tools.ant.taskdefs.Java] INFO:
回复 支持 反对

使用道具 举报

2

主题

8

帖子

54

积分

初级会员

Rank: 2

积分
54
QQ
发表于 2017-9-26 10:32:23 | 显示全部楼层
anuomxl 发表于 2016-8-11 18:02
ios应用环境准备:
   1 identity imported.
   

同,一样的问题,层主解决了吗?
回复 支持 反对

使用道具 举报

0

主题

3

帖子

7

积分

新手上路

Rank: 1

积分
7
QQ
发表于 2017-10-9 10:59:45 | 显示全部楼层
kenminkajp 发表于 2016-3-16 17:01
* Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to ...

看看这个办法是不是可以
http://blog.csdn.net/itbs/article/details/78134292
回复 支持 反对

使用道具 举报

0

主题

3

帖子

7

积分

新手上路

Rank: 1

积分
7
QQ
发表于 2017-10-9 11:00:25 | 显示全部楼层
kenminkajp 发表于 2016-3-16 17:01
* Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to ...

试试这个办法是不是可以
blog.csdn.net/itbs/article/details/78134292
回复 支持 反对

使用道具 举报

0

主题

1

帖子

3

积分

新手上路

Rank: 1

积分
3
QQ
发表于 2017-10-11 11:32:56 | 显示全部楼层
  
      The following build commands failed:
              Check dependencies
      (1 failure)
      
      Libtool build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/armv7/libCordova.a normal armv7
          cd /Users/zhao/Desktop/WeX5_V3.7-mac/model/Native/湖商贷/build/src/platforms/ios/CordovaLib
          export IPHONEOS_DEPLOYMENT_TARGET=9.3
          export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/zhao/Desktop/WeX5_V3.7-mac/node:/var/folders/1w/_mwltfdn36x2xj966mhnd4fr0000gn/T/cc4e7f4c-b695-40d0-8614-ee5e01c08d12/java/jdk1.8-x64/Contents/Home/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -arch_only armv7 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk -L/Users/zhao/Desktop/WeX5_V3.7-mac/model/Native/湖商贷/build/src/platforms/ios/build/device -filelist /Users/zhao/Desktop/WeX5_V3.7-mac/model/Native/湖商贷/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/armv7/Cordova.LinkFileList -o /Users/zhao/Desktop/WeX5_V3.7-mac/model/Native/湖商贷/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/armv7/libCordova.a
      
      CreateUniversalBinary /Users/zhao/Desktop/WeX5_V3.7-mac/model/Native/湖商贷/build/src/platforms/ios/build/device/libCordova.a normal armv7\ arm64
          cd /Users/zhao/Desktop/WeX5_V3.7-mac/model/Native/湖商贷/build/src/platforms/ios/CordovaLib
          export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/zhao/Desktop/WeX5_V3.7-mac/node:/var/folders/1w/_mwltfdn36x2xj966mhnd4fr0000gn/T/cc4e7f4c-b695-40d0-8614-ee5e01c08d12/java/jdk1.8-x64/Contents/Home/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
          /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static /Users/zhao/Desktop/WeX5_V3.7-mac/model/Native/湖商贷/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/armv7/libCordova.a /Users/zhao/Desktop/WeX5_V3.7-mac/model/Native/湖商贷/build/src/platforms/ios/CordovaLib/build/CordovaLib.build/Release-iphoneos/CordovaLib.build/Objects-normal/arm64/libCordova.a -o /Users/zhao/Desktop/WeX5_V3.7-mac/model/Native/湖商贷/build/src/platforms/ios/build/device/libCordova.a
      
      === BUILD TARGET  OF PROJECT  WITH CONFIGURATION Release ===
      
      Check dependencies
      Code Signing Error: Signing for "湖商贷" requires a development team. Select a development team in the project editor.
      Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.0'
      
      ERROR building one of the platforms: Error: /Users/zhao/Desktop/WeX5_V3.7-mac/model/Native/湖商贷/build/src/platforms/ios/cordova/build: Command failed with exit code 2
      You may not have the required environment or OS to build this project
      Error code 65 for command: xcodebuild with args: -xcconfig,/Users/zhao/Desktop/WeX5_V3.7-mac/model/Native/湖商贷/build/src/platforms/ios/cordova/build-release.xcconfig,-project,湖商贷.xcodeproj,ARCHS=armv7 arm64,-target,湖商贷,-configuration,Release,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/zhao/Desktop/WeX5_V3.7-mac/model/Native/湖商贷/build/src/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/zhao/Desktop/WeX5_V3.7-mac/model/Native/湖商贷/build/src/platforms/ios/build/sharedpch
      Error: /Users/zhao/Desktop/WeX5_V3.7-mac/model/Native/湖商贷/build/src/platforms/ios/cordova/build: Command failed with exit code 2
   ****ERROR****: 子任务 "exec" 执行失败。
   ****ERROR****: 任务 "buildIOS" 执行失败。
   ****ERROR****: 执行出错:
   ****ERROR****: 错误信息: exec returned: 1
   ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
   /var/folders/1w/_mwltfdn36x2xj966mhnd4fr0000gn/T/cc4e7f4c-b695-40d0-8614-ee5e01c08d12/pack.xml:121: 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: 253
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html


*******************************************************
报这个错误,在哪里添加开发团队名称,以及其他的相关问题如何解决?遇到过相似问题的麻烦帮忙分析下日志?
回复 支持 反对

使用道具 举报

34

主题

129

帖子

343

积分

中级会员

Rank: 3Rank: 3

积分
343
QQ
发表于 2017-10-31 09:46:01 | 显示全部楼层
eastcowry 发表于 2016-3-8 18:42
请问解决了吗?我也是这个错误

你好你这个问题解决了吗。我也是这个问题
回复 支持 反对

使用道具 举报

17

主题

130

帖子

274

积分

中级会员

Rank: 3Rank: 3

积分
274
QQ
发表于 2017-11-8 14:20:08 | 显示全部楼层
hushangdai 发表于 2017-10-11 11:32
The following build commands failed:
              Check dependencies
      (1 failure)

我也是出现这个问题


/var/folders/gj/xjngvx493vg4y4njyc8w_vr00000gn/T/74f7709f-dd66-4561-8c1a-9d5e8be36506/pack.xml:121: 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)
      ** BUILD FAILED **        at com.justep.deploy.app.utils.BuildHelper.execTask(Unknown Source)
      
      
      The following build commands failed:
              CompileC build/小蝌蚪.build/Debug-iphoneos/小蝌蚪.build/Objects-normal/armv7/SQLitePlugin.o 小蝌蚪/Plugins/com.brodysoft.sqlitePlugin/SQLitePlugin.m normal armv7 objective-c com.apple.compilers.llvm.clang.1_0.compiler
      (1 failure)
      Error code 65 for command: xcodebuild with args: -xcconfig,/Users/x5/model/Native/小蝌蚪/build/src/platforms/ios/cordova/build-debug.xcconfig,-project,小蝌蚪.xcodeproj,ARCHS=armv7 arm64,-target,小蝌蚪,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/x5/model/Native/小蝌蚪/build/src/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/x5/model/Native/小蝌蚪/build/src/platforms/ios/build/sharedpch
      Error: /Users/x5/model/Native/小蝌蚪/build/src/platforms/ios/cordova/build: Command failed with exit code 2
      ERROR building one of the platforms: Error: /Users/x5/model/Native/小蝌蚪/build/src/platforms/ios/cordova/build: Command failed with exit code 2
      You may not have the required environment or OS to build this project
   ****ERROR****: 子任务 "exec" 执行失败。
   ****ERROR****: 任务 "buildIOS" 执行失败。
   ****ERROR****: 执行出错:
   ****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: 253
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
回复 支持 反对

使用道具 举报

21

主题

73

帖子

263

积分

中级会员

Rank: 3Rank: 3

积分
263
QQ
发表于 2017-11-8 15:22:52 | 显示全部楼层
大家又遇到这种情况吗

   Check dependencies
   Signing for "心语 跑跑" requires a development team. Select a development team in the project editor.
   Code signing is required for product type 'Application' in SDK 'iOS 10.3'
   
   ERROR building one of the platforms: Error: /Users/mark/Documents/WeX5_V3.5-mac/model/Native/real/build/src/platforms/ios/cordova/build: Command failed with exit code 2
   You may not have the required environment or OS to build this project
   ** BUILD FAILED **
   
   
   The following build commands failed:
           Check dependencies
   (1 failure)
   Error code 65 for command: xcodebuild with args: -xcconfig,/Users/mark/Documents/WeX5_V3.5-mac/model/Native/real/build/src/platforms/ios/cordova/build-release.xcconfig,-project,心语 跑跑.xcodeproj,ARCHS=armv7 arm64,-target,心语 跑跑,-configuration,Release,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/mark/Documents/WeX5_V3.5-mac/model/Native/real/build/src/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/mark/Documents/WeX5_V3.5-mac/model/Native/real/build/src/platforms/ios/build/sharedpch
   Error: /Users/mark/Documents/WeX5_V3.5-mac/model/Native/real/build/src/platforms/ios/cordova/build: Command failed with exit code 2
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "buildIOS" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: exec returned: 1
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html




回复 支持 反对

使用道具 举报

0

主题

2

帖子

4

积分

新手上路

Rank: 1

积分
4
QQ
发表于 2017-11-10 11:13:10 | 显示全部楼层
前天打包都没问题,都能成功。
今天重新打包,什么都没改,就出现错误了。


      
   
环境初始化:
   
   开始......
      
   生成应用环境准备:
      
   android应用环境准备:
      
   ios应用环境准备:
   
   生成android应用包:
      Running command: cmd "/s /c "E:\wex\model\Native\T1\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
      ANDROID_HOME=E:\wex\tools\adt-sdk
      JAVA_HOME=E:\wex\java\jre1.8
      Running: E:\wex\model\Native\T1\build\src\platforms\android\gradlew cdvBuildDebug -b E:\wex\model\Native\T1\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:
      Failed to load native library 'native-platform.dll' for Windows 7 x86.
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      
      E:\wex\model\Native\T1\build\src\platforms\android\cordova\node_modules\q\q.js:126
                          throw e;
                          ^
      Error code 1 for command: cmd with args: /s /c "E:\wex\model\Native\T1\build\src\platforms\android\gradlew cdvBuildDebug -b E:\wex\model\Native\T1\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
   C:\Users\lenovo\AppData\Local\Temp\699a4ab3-37de-406f-a817-9a08a637daa8\pack.xml:91: 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
回复 支持 反对

使用道具 举报

0

主题

2

帖子

4

积分

新手上路

Rank: 1

积分
4
QQ
发表于 2017-11-10 11:14:19 | 显示全部楼层
幽灵隐士 发表于 2017-11-10 11:13
前天打包都没问题,都能成功。
今天重新打包,什么都没改,就出现错误了。

* What went wrong:
      Failed to load native library 'native-platform.dll' for Windows 7 x86.

我的系统是win7 64位的。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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