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

QQ登录

只需一步,快速开始

楼主: liangshaohua

[分享] App打包常见报错

  [复制链接]

8

主题

46

帖子

104

积分

初级会员

Rank: 2

积分
104
QQ
发表于 2016-8-19 09:15:56 | 显示全部楼层
这个问题是怎么解决的?
QQ图片20160819091015.jpg
[url=http://bbs.wex5.com/data/attachment/forum/201606/29/123822ji8zmzxnoninyma5.
回复 支持 反对

使用道具 举报

1

主题

2

帖子

12

积分

新手上路

Rank: 1

积分
12
QQ
发表于 2016-8-22 10:08:44 | 显示全部楼层
本帖最后由 liang11 于 2016-8-23 11:09 编辑

Build started.
Task "condition" started.
Task "condition" finished.
Task "condition" started.
Task "condition" finished.
Task "property" started.
Task "property" finished.
Task "property" started.
Task "property" finished.
Task "condition" started.
Task "condition" finished.
Task "path" started.
Task "path" finished.
Task "typedef" started.
Task "typedef" finished.
Task "svnSetting" started.
Task "svnSetting" finished.
Task "typedef" started.
Task "typedef" finished.
Target "clean" started.
Task "delete" started.
Deleting directory /Users/lijialin/Downloads/WeX5_V3.3-mac/model/Native/.workspace/C6F4B74213C00001DC5728B014601668/build
Task "delete" finished.
Task "delete" started.
Deleting directory /Users/lijialin/Downloads/WeX5_V3.3-mac/model/Native/.workspace/C6F4B74213C00001DC5728B014601668/dist
Task "delete" finished.
Target "clean" finished.
Target "mergeResources" started.
Task "unzip" started.
Expanding: /Users/lijialin/Downloads/WeX5_V3.3-mac/model/Native/.workspace/C6F4B74213C00001DC5728B014601668/upload/src.zip into /Users/lijialin/Downloads/WeX5_V3.3-mac/model/Native/.workspace/C6F4B74213C00001DC5728B014601668/build
Task "unzip" finished.
Task "chmod" started.
Task "chmod" finished.
Task "chmod" started.
Task "chmod" finished.
Task "chmod" started.
Task "chmod" finished.
Task "chmod" started.
Task "chmod" finished.
Task "property" started.
Task "property" finished.
Target "mergeResources" finished.
Target "prepareBuild" started.
Task "mkdir" started.
Task "mkdir" finished.
Task "mkdir" started.
Created dir: /Users/lijialin/Downloads/WeX5_V3.3-mac/model/Native/.workspace/C6F4B74213C00001DC5728B014601668/dist
Task "mkdir" finished.
Task "property" started.
Task "property" finished.
Task "condition" started.
Task "condition" finished.
Task "condition" started.
Task "condition" finished.
Task "prepareBuild" started.
Task "prepareBuild" finished.
Target "prepareBuild" finished.
Target "prepareAndroidBuild" started.
Target "prepareAndroidBuild" finished.
Target "prepareIOSBuild" started.
Task "exec" started.
1 identity imported.
Task "exec" finished.
Task "copy" started.
Copying 1 file to /Users/lijialin/Library/MobileDevice/Provisioning Profiles
Task "copy" finished.
Target "prepareIOSBuild" finished.
Target "buildAndroid" started.
Target "buildAndroid" finished.
Target "buildIOS" started.
Task "exec" started.
Unknown value for orientation preference: default
Running command: /Users/lijialin/Downloads/WeX5_V3.3-mac/model/Native/.workspace/C6F4B74213C00001DC5728B014601668/build/platforms/ios/cordova/build --debug --device
Build settings from command line:
    ARCHS = armv7 arm64
    CONFIGURATION_BUILD_DIR = /Users/lijialin/Downloads/WeX5_V3.3-mac/model/Native/.workspace/C6F4B74213C00001DC5728B014601668/build/platforms/ios/build/device
    SDKROOT = iphoneos9.3
    VALID_ARCHS = armv7 arm64

Build settings from configuration file '/Users/lijialin/Downloads/WeX5_V3.3-mac/model/Native/.workspace/C6F4B74213C00001DC5728B014601668/build/platforms/ios/cordova/build.xcconfig':
    CODE_SIGN_IDENTITY = iPhone Developer

2016-08-22 10:06:58.175 xcodebuild[536:6078] Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character / at line 1" UserInfo={NSDebugDescription=Unexpected character / at line 1, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character '0x5c0f' at line 129" UserInfo={NSDebugDescription=Unexpected character '0x5c0f' at line 129}}
xcodebuild: error: Unable to read project 'app.xcodeproj'.
        Reason: Project /Users/lijialin/Downloads/WeX5_V3.3-mac/model/Native/.workspace/C6F4B74213C00001DC5728B014601668/build/platforms/ios/app.xcodeproj cannot be opened because the project file cannot be parsed.


Error: /Users/lijialin/Downloads/WeX5_V3.3-mac/model/Native/.workspace/C6F4B74213C00001DC5728B014601668/build/platforms/ios/cordova/build: Command failed with exit code 74
    at ChildProcess.whenDone (/Users/lijialin/Downloads/WeX5_V3.3-mac/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

求助
回复 支持 反对

使用道具 举报

1

主题

4

帖子

14

积分

新手上路

Rank: 1

积分
14
QQ
发表于 2016-8-24 19:25:18 | 显示全部楼层
生成android应用包:
   Running command: cmd "/s /c "C:\Users\Administrator\Desktop\WeX5_V3.5\model\Native\澶栧崠\build\src\platforms\android\cordova\build.bat --release --gradleArg=--offline""
   ANDROID_HOME=C:\Users\Administrator\Desktop\WeX5_V3.5\tools\adt-sdk
   JAVA_HOME=C:\Users\Administrator\Desktop\WeX5_V3.5\java\jre1.8
   Running: C:\Users\Administrator\Desktop\WeX5_V3.5\model\Native\澶栧崠\build\src\platforms\android\gradlew cdvBuildRelease -b C:\Users\Administrator\Desktop\WeX5_V3.5\model\Native\澶栧崠\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
   :preReleaseBuild UP-TO-DATE
   :checkReleaseManifest
   :CordovaLib:preBuild UP-TO-DATE
   :CordovaLib:preReleaseBuild UP-TO-DATE
   :CordovaLib:compileReleaseNdk UP-TO-DATE
   :CordovaLib:compileLint
   :CordovaLib:copyReleaseLint UP-TO-DATE
   :CordovaLib:checkReleaseManifest
   :CordovaLib:preDebugAndroidTestBuild UP-TO-DATE
   :CordovaLib:preDebugBuild UP-TO-DATE
   :CordovaLib:preDebugUnitTestBuild 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
   C:\Users\Administrator\Desktop\WeX5_V3.5\model\Native\外卖\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 : C:\Users\Administrator\Desktop\WeX5_V3.5\model\Native\外卖\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: 17.991 secs
   
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Execution failed for task ':JustepGetContent:mergeReleaseResources'.
   > C:\Users\Administrator\Desktop\WeX5_V3.5\model\Native\外卖\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 : C:\Users\Administrator\Desktop\WeX5_V3.5\model\Native\外卖\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\Administrator\Desktop\WeX5_V3.5\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 "C:\Users\Administrator\Desktop\WeX5_V3.5\model\Native\澶栧崠\build\src\platforms\android\gradlew cdvBuildRelease -b C:\Users\Administrator\Desktop\WeX5_V3.5\model\Native\澶栧崠\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
   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
回复 支持 反对

使用道具 举报

1

主题

4

帖子

14

积分

新手上路

Rank: 1

积分
14
QQ
发表于 2016-8-24 19:27:13 | 显示全部楼层
binchea 发表于 2016-8-24 19:25
生成android应用包:
   Running command: cmd "/s /c "C:\Users\Administrator\Desktop\WeX5_V3.5\model\Na ...

求解决  windows系统打包安卓时出现这样
回复 支持 反对

使用道具 举报

0

主题

2

帖子

10

积分

新手上路

Rank: 1

积分
10
QQ
发表于 2016-8-25 13:44:56 | 显示全部楼层
wcyaaa 发表于 2016-3-23 13:01
复制工程:
   
复制插件:

您好,您的问题解决了吗,我想请教下你,我现在也遇到了同样的问题了。
回复 支持 反对

使用道具 举报

1

主题

2

帖子

16

积分

新手上路

Rank: 1

积分
16
QQ
发表于 2016-8-25 15:39:19 | 显示全部楼层
mmdkzt 发表于 2016-6-5 00:00
****ERROR****: 子任务 "compileUI" 执行失败。
****ERROR****: 任务 "compileUI" 执行失败。
****ERROR*** ...

这个错误该怎么处理?
回复 支持 反对

使用道具 举报

0

主题

3

帖子

11

积分

新手上路

Rank: 1

积分
11
QQ
发表于 2016-8-26 16:14:11 | 显示全部楼层
使用 "keytool -help" 获取所有可用命令
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "genAndrodKey" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: exec returned: 1
这是什么问题啊,有没有WeX5的qq群啊
回复 支持 反对

使用道具 举报

0

主题

3

帖子

11

积分

新手上路

Rank: 1

积分
11
QQ
发表于 2016-8-26 16:14:39 | 显示全部楼层
wex5_888 发表于 2016-8-26 16:14
使用 "keytool -help" 获取所有可用命令
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "g ...

顶。。。。。。。。。。。。。。
回复 支持 反对

使用道具 举报

0

主题

1

帖子

5

积分

新手上路

Rank: 1

积分
5
QQ
发表于 2016-8-28 21:37:46 | 显示全部楼层
build/src/platforms/android/build.gradle -Dorg.gradle.daemon=true --offline
   
   BUILD FAILED
   
   Total time: 1.144 secs
   
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   A problem occurred configuring root project 'android'.
   > Could not resolve all dependencies for configuration ':classpath'.
      > Could not resolve com.android.tools.build:gradle:2.0.0+.
        Required by:
            :android:unspecified
         > No cached version listing for com.android.tools.build:gradle:2.0.0+ available for offline mode.
   
   * 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: /Users/fengwenkai/Documents/software/WeX5_V3.5-mac/model/Native/外卖/build/src/platforms/android/cordova/build: Command failed with exit code 1
   You may not have the required environment or OS to build this project
   
   /Users/fengwenkai/Documents/software/WeX5_V3.5-mac/model/Native/外卖/build/src/platforms/android/cordova/node_modules/q/q.js:126
                       throw e;
                       ^
   Error code 1 for command: /Users/fengwenkai/Documents/software/WeX5_V3.5-mac/model/Native/外卖/build/src/platforms/android/gradlew with args: cdvBuildRelease,-b,/Users/fengwenkai/Documents/software/WeX5_V3.5-mac/model/Native/外卖/build/src/platforms/android/build.gradle,-Dorg.gradle.daemon=true,--offline
   Error: /Users/fengwenkai/Documents/software/WeX5_V3.5-mac/model/Native/外卖/build/src/platforms/android/cordova/build: 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


这个错误,刚开始使用wex5应该都会报这个错误,我看了一下帖子,也确实有很多出现这个错误的,但是好像没有人给解决一下。谢谢
回复 支持 反对

使用道具 举报

0

主题

3

帖子

11

积分

新手上路

Rank: 1

积分
11
QQ
发表于 2016-8-28 22:10:14 | 显示全部楼层
littlelove2013 发表于 2016-1-27 20:02
【Android打包报错】
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "buildAndroid" 执行 ...

这个问题没人解答吗,求大神指出明路。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-22 16:41 , Processed in 0.067919 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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