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

QQ登录

只需一步,快速开始

查看: 1555|回复: 1

[处理中3] 打包失败!求助,方法都试了!

[复制链接]

7

主题

17

帖子

77

积分

初级会员

Rank: 2

积分
77
发表于 2019-1-15 09:38:39 | 显示全部楼层 |阅读模式
本帖最后由 henpuri 于 2019-1-15 09:40 编辑

build.properties 已修改
下面这个方法也试了,没效果。
http://doc.wex5.com/wex5-app-question-list-0004/


  1. #Mon, 14 Jan 2019 16:38:56 +0800
  2. # app used plugins, gen automation
  3. usedPlugins=cordova-plugin-device,cordova-plugin-app-version,cordova-plugin-camera,cordova-plugin-spinner-dialog,cordova-plugin-filepath,cordova-plugin-geolocation,cordova-plugin-video-editor,cordova-plugin-x-toast,cordova-plugin-inappbrowser,cordova-plugin-actionsheet,cordova-plugin-media-capture,cordova-open,cn.jpush.phonegap.JPushPlugin,cordova-plugin-file,cordova-plugin-file-transfer

  4. # last pack config
  5. platform=android
  6. compileUI=true
  7. releaseMode=debug
  8. resPassword=

  9. #gradle cached dir: tools/maven/repo
  10. #remove # use online mode
  11. offline=false

  12. includeUIRes=true
  13. useProxyBuilderServer=false
  14. proxyBuilderServer=
复制代码


报错如下:
  1. 创建源代码工程:
  2.    
  3. android应用环境准备:
  4.    
  5. ios应用环境准备:
  6.    
  7. 生成android应用包:
  8.    Running command: cmd "/s /c "E:\WeX5_V3.5\model\Native\淇℃伅蹇姤娴嬭瘯\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
  9.    ANDROID_HOME=E:\WeX5_V3.5\tools\adt-sdk
  10.    JAVA_HOME=E:\WeX5_V3.5\java\jre1.8
  11.    Running: E:\WeX5_V3.5\model\Native\淇℃伅蹇姤娴嬭瘯\build\src\platforms\android\gradlew cdvBuildDebug -b E:\WeX5_V3.5\model\Native\淇℃伅蹇姤娴嬭瘯\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
  12.    Incremental java compilation is an incubating feature.
  13.    :preBuild UP-TO-DATE
  14.    :preDebugBuild UP-TO-DATE
  15.    :checkDebugManifest
  16.    :CordovaLib:preBuild UP-TO-DATE
  17.    :CordovaLib:preDebugBuild UP-TO-DATE
  18.    :CordovaLib:compileDebugNdk UP-TO-DATE
  19.    :CordovaLib:compileLint
  20.    :CordovaLib:copyDebugLint UP-TO-DATE
  21.    :CordovaLib:checkDebugManifest
  22.    :CordovaLib:preDebugAndroidTestBuild UP-TO-DATE
  23.    :CordovaLib:preDebugUnitTestBuild UP-TO-DATE
  24.    :CordovaLib:preReleaseBuild UP-TO-DATE
  25.    :CordovaLib:preReleaseUnitTestBuild UP-TO-DATE
  26.    :JustepGetContent:preBuild UP-TO-DATE
  27.    :JustepGetContent:preReleaseBuild UP-TO-DATE
  28.    :JustepGetContent:compileReleaseNdk UP-TO-DATE
  29.    :JustepGetContent:compileLint
  30.    :JustepGetContent:copyReleaseLint UP-TO-DATE
  31.    :JustepGetContent:checkReleaseManifest
  32.    :JustepGetContent:preDebugAndroidTestBuild UP-TO-DATE
  33.    :JustepGetContent:preDebugBuild UP-TO-DATE
  34.    :JustepGetContent:preDebugUnitTestBuild UP-TO-DATE
  35.    :JustepGetContent:preReleaseUnitTestBuild UP-TO-DATE
  36.    :JustepGetContent:prepareComAndroidSupportAppcompatV72220Library
  37.    :JustepGetContent:prepareComAndroidSupportSupportV42220Library
  38.    :JustepGetContent:prepareReleaseDependencies
  39.    :JustepGetContent:compileReleaseAidl
  40.    :JustepGetContent:compileReleaseRenderscript
  41.    :JustepGetContent:generateReleaseBuildConfig
  42.    :JustepGetContent:generateReleaseAssets UP-TO-DATE
  43.    :JustepGetContent:mergeReleaseAssets
  44.    :JustepGetContent:generateReleaseResValues
  45.    :JustepGetContent:generateReleaseResources
  46.    :JustepGetContent:mergeReleaseResources
  47.    :JustepGetContent:processReleaseManifest
  48.    :JustepGetContent:processReleaseResources
  49.    :JustepGetContent:generateReleaseSources
  50.    注: 某些输入文件使用或覆盖了已过时的 API。
  51.    注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
  52.    注: E:\WeX5_V3.5\model\Native\信息快报测试\build\src\platforms\android\JustepGetContent\src\main\java\com\justep\x5\support\chooser\FileUploadChooserActivity.java使用了未经检查或不安全的操作。
  53.    注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
  54.    :JustepGetContent:compileReleaseJavaWithJavac
  55.    :JustepGetContent:extractReleaseAnnotations
  56.    :JustepGetContent:mergeReleaseProguardFiles
  57.    :JustepGetContent:packageReleaseRenderscript UP-TO-DATE
  58.    :JustepGetContent:packageReleaseResources
  59.    :JustepGetContent:processReleaseJavaRes UP-TO-DATE
  60.    :JustepGetContent:transformResourcesWithMergeJavaResForRelease
  61.    :JustepGetContent:transformClassesAndResourcesWithSyncLibJarsForRelease
  62.    :JustepGetContent:mergeReleaseJniLibFolders
  63.    :JustepGetContent:transformNative_libsWithMergeJniLibsForRelease
  64.    :JustepGetContent:transformNative_libsWithSyncJniLibsForRelease
  65.    :JustepGetContent:bundleRelease
  66.    :CordovaLib:prepareAndroidJustepGetContentUnspecifiedLibrary
  67.    :CordovaLib:prepareComAndroidSupportAppcompatV72220Library
  68.    :CordovaLib:prepareComAndroidSupportSupportV42220Library
  69.    :CordovaLib:prepareDebugDependencies
  70.    :CordovaLib:compileDebugAidl
  71.    :CordovaLib:compileDebugRenderscript
  72.    :CordovaLib:generateDebugBuildConfig
  73.    :CordovaLib:generateDebugAssets UP-TO-DATE
  74.    :CordovaLib:mergeDebugAssets
  75.    :CordovaLib:generateDebugResValues
  76.    :CordovaLib:generateDebugResources
  77.    :CordovaLib:mergeDebugResources
  78.    :CordovaLib:processDebugManifest
  79.    :CordovaLib:processDebugResources
  80.    :CordovaLib:generateDebugSources
  81.    注: 某些输入文件使用或覆盖了已过时的 API。
  82.    注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
  83.    :CordovaLib:compileDebugJavaWithJavac
  84.    :CordovaLib:extractDebugAnnotations
  85.    :CordovaLib:mergeDebugProguardFiles
  86.    :CordovaLib:packageDebugRenderscript UP-TO-DATE
  87.    :CordovaLib:packageDebugResources
  88.    :CordovaLib:processDebugJavaRes UP-TO-DATE
  89.    :CordovaLib:transformResourcesWithMergeJavaResForDebug
  90.    :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
  91.    :CordovaLib:mergeDebugJniLibFolders
  92.    :CordovaLib:transformNative_libsWithMergeJniLibsForDebug
  93.    :CordovaLib:transformNative_libsWithSyncJniLibsForDebug
  94.    :CordovaLib:bundleDebug
  95.    :prepareAndroidCordovaLibUnspecifiedDebugLibrary
  96.    :preReleaseBuild UP-TO-DATE
  97.    :CordovaLib:compileReleaseNdk UP-TO-DATE
  98.    :CordovaLib:copyReleaseLint UP-TO-DATE
  99.    :CordovaLib:checkReleaseManifest
  100.    :CordovaLib:prepareReleaseDependencies
  101.    :CordovaLib:compileReleaseAidl
  102.    :CordovaLib:compileReleaseRenderscript
  103.    :CordovaLib:generateReleaseBuildConfig
  104.    :CordovaLib:generateReleaseAssets UP-TO-DATE
  105.    :CordovaLib:mergeReleaseAssets
  106.    :CordovaLib:generateReleaseResValues
  107.    :CordovaLib:generateReleaseResources
  108.    :CordovaLib:mergeReleaseResources
  109.    :CordovaLib:processReleaseManifest
  110.    :CordovaLib:processReleaseResources
  111.    :CordovaLib:generateReleaseSources
  112.    注: 某些输入文件使用或覆盖了已过时的 API。
  113.    注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
  114.    :CordovaLib:compileReleaseJavaWithJavac
  115.    :CordovaLib:extractReleaseAnnotations
  116.    :CordovaLib:mergeReleaseProguardFiles
  117.    :CordovaLib:packageReleaseRenderscript UP-TO-DATE
  118.    :CordovaLib:packageReleaseResources
  119.    :CordovaLib:processReleaseJavaRes UP-TO-DATE
  120.    :CordovaLib:transformResourcesWithMergeJavaResForRelease
  121.    :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
  122.    :CordovaLib:mergeReleaseJniLibFolders
  123.    :CordovaLib:transformNative_libsWithMergeJniLibsForRelease
  124.    :CordovaLib:transformNative_libsWithSyncJniLibsForRelease
  125.    :CordovaLib:bundleRelease
  126.    :prepareAndroidJustepGetContentUnspecifiedLibrary
  127.    :prepareComAndroidSupportAppcompatV72220Library
  128.    :prepareComAndroidSupportSupportV42311Library
  129.    :prepareComGithubErgoviaMobileAndroidTranscoderV0110R_ergoviaLibrary
  130.    :prepareDebugDependencies
  131.    :compileDebugAidl
  132.    :compileDebugRenderscript
  133.    :generateDebugBuildConfig
  134.    :generateDebugAssets UP-TO-DATE
  135.    :mergeDebugAssets
  136.    :generateDebugResValues
  137.    :generateDebugResources
  138.    E:\WeX5_V3.5\model\Native\快测试\build\src\platforms\android\AndroidManifest.xml:91:9-103 Error::mergeDebugResources
  139.    
  140.    :processDebugManifest
  141.    
  142.    See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
  143.    
  144.            Element meta-data#com.baidu.lbsapi.API_KEY at AndroidManifest.xml:91:9-103 duplicated with element declared at AndroidManifest.xml:28:9-103
  145.    :processDebugManifest FAILED
  146.    
  147.    BUILD FAILED
  148.    
  149.    Total time: 14.33 secs
  150.    E:\WeX5_V3.5\model\Native\快测试\build\src\platforms\android\AndroidManifest.xml Error:
  151.            Validation failed, exiting
  152.    
  153.    FAILURE: Build failed with an exception.
  154.    
  155.    * What went wrong:
  156.    Execution failed for task ':processDebugManifest'.
  157.    > Manifest merger failed with multiple errors, see logs
  158.    
  159.    * Try:
  160.    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
  161.    ERROR building one of the platforms: Error: cmd: Command failed with exit code 1
  162.    You may not have the required environment or OS to build this project
  163.    
  164.    E:\WeX5_V3.5\model\Native\淇℃伅蹇姤娴嬭瘯\build\src\platforms\android\cordova\node_modules\q\q.js:126
  165.                        throw e;
  166.                        ^
  167.    Error code 1 for command: cmd with args: /s /c "E:\WeX5_V3.5\model\Native\淇℃伅蹇姤娴嬭瘯\build\src\platforms\android\gradlew cdvBuildDebug -b E:\WeX5_V3.5\model\Native\淇℃伅蹇姤娴嬭瘯\build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline"
  168.    Error: cmd: Command failed with exit code 1
  169. ****ERROR****: 子任务 "exec" 执行失败。
  170. ****ERROR****: 任务 "buildAndroid" 执行失败。
  171. ****ERROR****: 执行出错:
  172. ****ERROR****: 错误信息: exec returned: 1
  173. ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
复制代码



91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35915
发表于 2019-1-15 14:08:23 | 显示全部楼层
com.baidu.lbsapi.API_KEY

插件的参数设置不正确

远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-25 04:43 , Processed in 0.082255 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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