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

QQ登录

只需一步,快速开始

楼主: liangshaohua

[分享] App打包常见报错

  [复制链接]

3

主题

5

帖子

15

积分

新手上路

Rank: 1

积分
15
QQ
发表于 2016-8-3 20:59:37 | 显示全部楼层
BUILD FAILED
   
   Total time: 1.475 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: /wex5/model/Native/hello/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
   
   /wex5/model/Native/hello/build/src/platforms/android/cordova/node_modules/q/q.js:126
                       throw e;
                       ^
   Error code 1 for command: /wex5/model/Native/hello/build/src/platforms/android/gradlew with args: cdvBuildDebug,-b,/wex5/model/Native/hello/build/src/platforms/android/build.gradle,-Dorg.gradle.daemon=true,--offline
   Error: /wex5/model/Native/hello/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
回复 支持 反对

使用道具 举报

0

主题

1639

帖子

497

积分

中级会员

Rank: 3Rank: 3

积分
497
QQ
发表于 2016-8-4 13:22:17 | 显示全部楼层
顶,这帖子太有用了!!
回复我的时候请点击我当前评论旁边的回复按钮,能保证第一时间看到您的回复,在问题解决后,希望大家可以吧解决方法也分享一下,这样可以让更多的X5开发者共同进步,谢谢大家的知识共享
回复 支持 反对

使用道具 举报

23

主题

95

帖子

255

积分

中级会员

Rank: 3Rank: 3

积分
255
QQ
发表于 2016-8-5 11:45:07 | 显示全部楼层
BUILD FAILED

Total time: 16.806 secs
/Volumes/X5/WeX5/model/Native/.workspace/C72C13A791600001FF141CE0133D1373/build/platforms/android/src/com/3esemiconductor/Wex5EtiAPP/MainActivity.java:20: 错误: 浮点文字的格式错误
package com.3esemiconductor.Wex5EtiAPP;
           ^
/Volumes/X5/WeX5/model/Native/.workspace/C72C13A791600001FF141CE0133D1373/build/platforms/android/build/generated/source/r/release/com/3esemiconductor/Wex5EtiAPP/R.java:8: 错误: 浮点文字的格式错误
package com.3esemiconductor.Wex5EtiAPP;
           ^
/Volumes/X5/WeX5/model/Native/.workspace/C72C13A791600001FF141CE0133D1373/build/platforms/android/build/generated/source/buildConfig/release/com/3esemiconductor/Wex5EtiAPP/BuildConfig.java:4: 错误: 浮点文字的格式错误
package com.3esemiconductor.Wex5EtiAPP;
           ^
3 个错误

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* 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: /Volumes/X5/WeX5/model/Native/.workspace/C72C13A791600001FF141CE0133D1373/build/platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project

/Volumes/X5/WeX5/model/Native/.workspace/C72C13A791600001FF141CE0133D1373/build/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                    ^
Error code 1 for command: /Volumes/X5/WeX5/model/Native/.workspace/C72C13A791600001FF141CE0133D1373/build/platforms/android/gradlew with args: cdvBuildRelease,-b,/Volumes/X5/WeX5/model/Native/.workspace/C72C13A791600001FF141CE0133D1373/build/platforms/android/build.gradle,-Dorg.gradle.daemon=true,--offline
Error: /Volumes/X5/WeX5/model/Native/.workspace/C72C13A791600001FF141CE0133D1373/build/platforms/android/cordova/build: Command failed with exit code 1
****ERROR****: Task "exec" finished with error.
****ERROR****: Target "buildAndroid" finished with error.
****ERROR****: Build finished with error.
****ERROR****: 错误信息: exec returned: 1
****ERROR****: 如不能确定具体问题,可参考常见问题: http://wex5.com/cn/bbs/thread-82002-1-1.html
回复 支持 反对

使用道具 举报

0

主题

1

帖子

3

积分

新手上路

Rank: 1

积分
3
QQ
发表于 2016-8-10 09:25:06 | 显示全部楼层
开始......
   
保存配置信息:
   
编译UI资源:
   
清除编译环境:
   
复制模版工程:
   
复制工程:
   
复制插件:
   
复制WWW资源:
   
更新工程信息:
   
增加插件:
   使用到的插件: [cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils]
   开始准备插件参数......
   插件参数准备完成
   开始安装插件......
   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.
   插件安装完成
   
创建源代码工程:
   
android应用环境准备:
****ERROR****: 子任务 "copy" 执行失败。
****ERROR****: 任务 "prepareAndroidBuild" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Warning: Could not find file D:\tools\WeX5_V3.4\model\Native\catch fish\build\src\android.keystore to copy.


想问一下,如果想自己插入app图标,,是不是要把图片复制到所指向的路径下?
这个问题在有设置app图标的时候有出现,当使用默认图标进行打包的时候就正常了……
回复 支持 反对

使用道具 举报

0

主题

1

帖子

5

积分

新手上路

Rank: 1

积分
5
QQ
发表于 2016-8-11 18:02:25 | 显示全部楼层
ios应用环境准备:
   1 identity imported.
   
生成android应用包:
   
生成ios应用包:
   Running command: /Users/mac-tdcy/Downloads/WeX5_V3.5-mac/model/Native/洺汐商城/build/src/platforms/ios/cordova/build --release --device
   ERROR building one of the platforms: Error: /Users/mac-tdcy/Downloads/WeX5_V3.5-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
   xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
   
   Error: /Users/mac-tdcy/Downloads/WeX5_V3.5-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
回复 支持 反对

使用道具 举报

4

主题

30

帖子

53

积分

初级会员

Rank: 2

积分
53
发表于 2016-8-12 13:48:25 | 显示全部楼层
liangshaohua 发表于 2015-11-30 15:36
【IOS报错情况一】打包过程中输入iOS的P12证书密码错误时,会在打包服务器日志中输出如下错误信息:

secur ...

也有可能是证书不对,重新从钥匙串中导出,并记住密码
宝剑锋从磨砺出,梅花香自苦寒来。
回复 支持 反对

使用道具 举报

2

主题

8

帖子

18

积分

新手上路

Rank: 1

积分
18
QQ
发表于 2016-8-18 13:25:19 | 显示全部楼层
郑峰次郎 发表于 2016-2-2 18:47
****ERROR****: 子任务 "updateSource" 执行失败。
****ERROR****: 任务 "updateProject" 执行失败。
****E ...

我也想问怎么解决的
回复 支持 反对

使用道具 举报

0

主题

3

帖子

9

积分

新手上路

Rank: 1

积分
9
QQ
发表于 2016-8-18 14:01:33 | 显示全部楼层

   :mergeDebugResources
   :processDebugManifest
   D:\WeX5_V3.4\model\Native\takeout\build\src\platforms\android\build\intermediates\res\debug\xml\config.xml:41: error: Error: No resource found that matches the given name (at 'value' with value '??????????').
   
   D:\WeX5_V3.4\model\Native\takeout\build\src\platforms\android\build\intermediates\res\debug\xml\config.xml:42: error: Error: No resource found that matches the given name (at 'value' with value '??????????').
   
   
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Execution failed for task ':processDebugResources'.
   > com.android.ide.common.internal.LoggedErrorException: Failed to run command:
           D:\WeX5_V3.4\tools\adt-sdk\build-tools\22.0.1\aapt.exe package -f --no-crunch -I D:\WeX5_V3.4\tools\adt-sdk\platforms\android-22\android.jar -M D:\WeX5_V3.4\model\Native\takeout\build\src\platforms\android\build\intermediates\manifests\full\debug\AndroidManifest.xml -S D:\WeX5_V3.4\model\Native\takeout\build\src\platforms\android\build\intermediates\res\debug -A D:\WeX5_V3.4\model\Native\takeout\build\src\platforms\android\build\intermediates\assets\debug -m -J D:\WeX5_V3.4\model\Native\takeout\build\src\platforms\android\build\generated\source\r\debug -F D:\WeX5_V3.4\model\Native\takeout\build\src\platforms\android\build\intermediates\res\resources-debug.ap_ --debug-mode --custom-package com.jfx.takeout -0 apk --output-text-symbols D:\WeX5_V3.4\model\Native\takeout\build\src\platforms\android\build\intermediates\symbols\debug
   Error Code:
           1
   Output:
           D:\WeX5_V3.4\model\Native\takeout\build\src\platforms\android\build\intermediates\res\debug\xml\config.xml:41: error: Error: No resource found that matches the given name (at 'value' with value '??????????').
          
           D:\WeX5_V3.4\model\Native\takeout\build\src\platforms\android\build\intermediates\res\debug\xml\config.xml:42: error: Error: No resource found that matches the given name (at 'value' with value '??????????').
          
   
   
   * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
   :processDebugResources FAILED
   
   BUILD FAILED
   
   Total time: 27.32 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\takeout\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\takeout\build\src\platforms\android\gradlew cdvBuildDebug -b D:\WeX5_V3.4\model\Native\takeout\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
回复 支持 反对

使用道具 举报

0

主题

3

帖子

9

积分

新手上路

Rank: 1

积分
9
QQ
发表于 2016-8-18 14:01:58 | 显示全部楼层
birdy 发表于 2016-8-18 14:01
:mergeDebugResources
   :processDebugManifest
   D:\WeX5_V3.4\model\Native\takeout\build\src\pla ...

求大神帮忙==
回复 支持 反对

使用道具 举报

6

主题

12

帖子

74

积分

初级会员

Rank: 2

积分
74
QQ
发表于 2016-8-18 14:51:01 | 显示全部楼层
开始......
   
保存配置信息:
   
编译UI资源:
   
清除编译环境:
   
复制模版工程:
   
复制工程:
   
复制插件:
   
复制WWW资源:
   
更新工程信息:
   
增加插件:
   使用到的插件: [cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils, cordova-plugin-insomnia, com.justep.cordova.plugin.voiceManager, cordova-plugin-app-version, de.appplant.cordova.plugin.local-notification, cordova-plugin-keyboard, com.justep.cordova.plugin.baidulocation, com.justep.cordova.plugin.weixin.v3, cordova-plugin-file-opener2, cordova-plugin-sim, com.justep.cordova.plugin.qq, com.justep.cordova.plugin.alipay, cordova-plugin-device-motion, com.justep.cordova.plugin.weibo, cordova-plugin-calendar, com.justep.cordova.plugin.iFlytek, de.appplant.cordova.plugin.badge, com.justep.cordova.plugin.unionpay, ch.ti8m.documenthandler, cordova-plugin-x-toast, at.modalog.cordova.plugin.cache, cordova-plugin-customurlscheme, cordova-plugin-appavailability, cn.jpush.phonegap.JPushPlugin, cordova-plugin-privacyscreen, cordova-plugin-file-transfer, cordova-plugin-device, de.appplant.cordova.plugin.background-mode, cordova-plugin-camera, cordova-plugin-spinner-dialog, cordova-plugin-statusbar, cordova-plugin-fastrde-downloader, com.justep.cordova.plugin.bmap, com.phonegap.plugins.videoplayer, cordova-plugin-geolocation, com.justep.cordova.plugin.scanCard, com.verso.cordova.clipboard, cordova-plugin-screen-orientation, cordova-plugin-app-preferences, cordova-plugin-media, cordova-plugin-inappbrowser, com.justep.cordova.plugin.touchid, cordova-plugin-x-socialsharing, cordova-plugin-actionsheet, cordova-plugin-media-capture, cordova-open, phonegap-plugin-barcodescanner, cordova-plugin-file, com.synconset.imagepicker]
   开始安装插件......
   开始准备插件参数......
   插件 "cordova-plugin-splashscreen" 参数如下:
   插件 "cordova-plugin-app-preferences" 参数如下:
   插件 "cordova-plugin-file" 参数如下:
   插件 "cordova-plugin-file-transfer" 参数如下:
   插件 "cordova-plugin-network-information" 参数如下:
   插件 "cordova-plugin-zip" 参数如下:
   插件 "cordova-plugin-inappbrowser" 参数如下:
   插件 "cordova-plugin-x-toast" 参数如下:
   插件 "com.justep.cordova.plugin.app.utils" 参数如下:
   插件 "cordova-plugin-insomnia" 参数如下:
   插件 "com.justep.cordova.plugin.voiceManager" 参数如下:
   插件 "cordova-plugin-app-version" 参数如下:
   插件 "cordova-plugin-device" 参数如下:
   插件 "cordova-plugin-app-event" 参数如下:
   插件 "de.appplant.cordova.plugin.local-notification" 参数如下:
   插件 "cordova-plugin-keyboard" 参数如下:
   插件 "com.justep.cordova.plugin.baidulocation" 参数如下:
   插件 "com.justep.cordova.plugin.AFNetworking" 参数如下:
   插件 "cordova-plugin-http" 参数如下:
   插件 "com.justep.cordova.plugin.weixin.v3" 参数如下:
        微信应用ID(weixin_appid):[****ERROR****]
****ERROR****: 子任务 "addPlugins" 执行失败。
****ERROR****: 任务 "addPlugins" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: 插件“com.justep.cordova.plugin.weixin.v3”参数“微信应用ID(weixin_appid)”未设置,此参数为必须
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
求助!!!
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-22 16:53 , Processed in 0.058809 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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