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

QQ登录

只需一步,快速开始

查看: 1664|回复: 3

[结贴] App打包:子任务 "exec" 执行失败。

[复制链接]

1

主题

1

帖子

3

积分

新手上路

Rank: 1

积分
3
QQ
发表于 2016-7-2 16:09:18 | 显示全部楼层 |阅读模式
本帖最后由 pyj88 于 2016-7-2 16:14 编辑

生成android应用包:
   Running command: cmd "/s /c "D:\WeX5V35\model\Native\鑽夋牴濯抃build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
   ANDROID_HOME=D:\WeX5V35\tools\adt-sdk
   JAVA_HOME=D:\WeX5V35\java\jre1.8
   Running: D:\WeX5V35\model\Native\鑽夋牴濯抃build\src\platforms\android\gradlew cdvBuildDebug -b D:\WeX5V35\model\Native\鑽夋牴濯抃build\src\platforms\android\build.gradle -Dorg.gradle.daemon=true --offline
   Incremental java compilation is an incubating feature.
   :preBuild UP-TO-DATE
   :preDebugBuild UP-TO-DATE
   :checkDebugManifest
   :CordovaLib:preBuild UP-TO-DATE
   :CordovaLib:preDebugBuild UP-TO-DATE
   :CordovaLib:compileDebugNdk UP-TO-DATE
   :CordovaLib:compileLint
   :CordovaLib:copyDebugLint UP-TO-DATE
   :CordovaLib:checkDebugManifest
   :CordovaLib:preDebugAndroidTestBuild UP-TO-DATE
   :CordovaLib:preDebugUnitTestBuild UP-TO-DATE
   :CordovaLib:preReleaseBuild 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
   :JustepGetContent:processReleaseManifest
   :JustepGetContent:processReleaseResources
   :JustepGetContent:generateReleaseSources
   注: 某些输入文件使用或覆盖了已过时的 API。
   注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
   注: D:\WeX5V35\model\Native\草\build\src\platforms\android\JustepGetContent\src\main\java\com\justep\x5\support\chooser\FileUploadChooserActivity.java使用了未经检查或不安全的操作。
   注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
   :JustepGetContent:compileReleaseJavaWithJavac
   :JustepGetContent:extractReleaseAnnotations
   :JustepGetContent:mergeReleaseProguardFiles
   :JustepGetContent:packageReleaseRenderscript UP-TO-DATE
   :JustepGetContent:packageReleaseResources
   :JustepGetContent:processReleaseJavaRes UP-TO-DATE
   :JustepGetContent:transformResourcesWithMergeJavaResForRelease
   :JustepGetContent:transformClassesAndResourcesWithSyncLibJarsForRelease
   :JustepGetContent:mergeReleaseJniLibFolders
   :JustepGetContent:transformNative_libsWithMergeJniLibsForRelease
   :JustepGetContent:transformNative_libsWithSyncJniLibsForRelease
   :JustepGetContent:bundleRelease
   :CordovaLib:prepareAndroidJustepGetContentUnspecifiedLibrary
   :CordovaLib:prepareComAndroidSupportAppcompatV72220Library
   :CordovaLib:prepareComAndroidSupportSupportV42220Library
   :CordovaLib:prepareDebugDependencies
   :CordovaLib:compileDebugAidl
   :CordovaLib:compileDebugRenderscript
   :CordovaLib:generateDebugBuildConfig
   :CordovaLib:generateDebugAssets UP-TO-DATE
   :CordovaLib:mergeDebugAssets
   :CordovaLib:generateDebugResValues
   :CordovaLib:generateDebugResources
   :CordovaLib:mergeDebugResources
   :CordovaLib:processDebugManifest
   :CordovaLib:processDebugResources
   :CordovaLib:generateDebugSources
   注: 某些输入文件使用或覆盖了已过时的 API。
   注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
   :CordovaLib:compileDebugJavaWithJavac
   :CordovaLib:extractDebugAnnotations
   :CordovaLib:mergeDebugProguardFiles
   :CordovaLib:packageDebugRenderscript UP-TO-DATE
   :CordovaLib:packageDebugResources
   :CordovaLib:processDebugJavaRes UP-TO-DATE
   :CordovaLib:transformResourcesWithMergeJavaResForDebug
   :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
   :CordovaLib:mergeDebugJniLibFolders
   :CordovaLib:transformNative_libsWithMergeJniLibsForDebug
   :CordovaLib:transformNative_libsWithSyncJniLibsForDebug
   :CordovaLib:bundleDebug
   :prepareAndroidCordovaLibUnspecifiedDebugLibrary
   :preReleaseBuild UP-TO-DATE
   :CordovaLib:compileReleaseNdk UP-TO-DATE
   :CordovaLib:copyReleaseLint UP-TO-DATE
   :CordovaLib:checkReleaseManifest
   :CordovaLib:prepareReleaseDependencies
   :CordovaLib:compileReleaseAidl
   :CordovaLib:compileReleaseRenderscript
   :CordovaLib:generateReleaseBuildConfig
   :CordovaLib:generateReleaseAssets UP-TO-DATE
   :CordovaLib:mergeReleaseAssets
   :CordovaLib:generateReleaseResValues
   :CordovaLib:generateReleaseResources
   :CordovaLib:mergeReleaseResources
   :CordovaLib:processReleaseManifest
   :CordovaLib:processReleaseResources
   :CordovaLib:generateReleaseSources
   注: 某些输入文件使用或覆盖了已过时的 API。
   注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
   :CordovaLib:compileReleaseJavaWithJavac
   :CordovaLib:extractReleaseAnnotations
   :CordovaLib:mergeReleaseProguardFiles
   :CordovaLib:packageReleaseRenderscript UP-TO-DATE
   :CordovaLib:packageReleaseResources
   :CordovaLib:processReleaseJavaRes UP-TO-DATE
   :CordovaLib:transformResourcesWithMergeJavaResForRelease
   :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
   :CordovaLib:mergeReleaseJniLibFolders
   :CordovaLib:transformNative_libsWithMergeJniLibsForRelease
   :CordovaLib:transformNative_libsWithSyncJniLibsForRelease
   :CordovaLib:bundleRelease
   :prepareAndroidJustepGetContentUnspecifiedLibrary
   :prepareComAndroidSupportAppcompatV72220Library
   :prepareComAndroidSupportSupportV42220Library
   :prepareDebugDependencies
   :compileDebugAidl
   :compileDebugRenderscript
   :generateDebugBuildConfig
   :generateDebugAssets UP-TO-DATE
   :mergeDebugAssets
   :generateDebugResValues
   :generateDebugResources
   :mergeDebugResources
   :processDebugManifest
   D:\WeX5V35\model\Native\草\build\src\platforms\android\src\cgm1\1\MainActivity.java:20: 错误: 需要';'
   package cgm1.1;
               ^
   :processDebugResources
   :generateDebugSources
   D:\WeX5V35\model\Native\草\build\src\platforms\android\build\generated\source\r\debug\cgm1\1\R.java:8: 错误: 需要';'
   package cgm1.1;
               ^
   D:\WeX5V35\model\Native\草\build\src\platforms\android\build\generated\source\buildConfig\debug\cgm1\1\BuildConfig.java:4: 错误: 需要';'
   package cgm1.1;
               ^
   3 个错误
   
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Execution failed for task ':compileDebugJavaWithJavac'.
   > 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.
   :compileDebugJavaWithJavac FAILED
   
   BUILD FAILED
   
   Total time: 12.425 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:\WeX5V35\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 "D:\WeX5V35\model\Native\鑽夋牴濯抃build\src\platforms\android\gradlew cdvBuildDebug -b D:\WeX5V35\model\Native\鑽夋牴濯抃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

0

主题

73

帖子

181

积分

初级会员

Rank: 2

积分
181
QQ
发表于 2016-7-4 13:55:12 | 显示全部楼层
包名不能这样命名 cgm1.1
命名规范:
http://www.cnblogs.com/ycxyyzw/p/4103284.html

评分

参与人数 1威望 +5 收起 理由
liangyongfei + 5 很给力!

查看全部评分

回复 支持 1 反对 0

使用道具 举报

发表于 2016-7-4 13:48:43 | 显示全部楼层
请问你的wex5是什么版本???打包平台自带的案例正常吗??
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

5

主题

27

帖子

167

积分

初级会员

Rank: 2

积分
167
QQ
发表于 2016-7-10 19:30:03 | 显示全部楼层
问题解决:我的原因,复制过来的报名,前面有空格,去掉空格就成功了
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-24 04:59 , Processed in 0.061429 second(s), 28 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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