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

QQ登录

只需一步,快速开始

楼主: liangshaohua

[分享] App打包常见报错

  [复制链接]

79

主题

581

帖子

3464

积分

论坛元老

Rank: 8Rank: 8

积分
3464
QQ
发表于 2016-9-29 14:39:47 | 显示全部楼层
java.io.FileNotFoundException: E:\wex3.5\model\Native\plugins\org.apache.cordova.device\plugin.xml (系统找不到指定的路径。)

QQ图片20160929143853.png

小尾巴~~世间万难,无非一拖二懒三不读书
回复 支持 反对

使用道具 举报

0

主题

5

帖子

23

积分

新手上路

Rank: 1

积分
23
QQ
发表于 2016-9-30 14:39:04 | 显示全部楼层
kenminkajp 发表于 2016-3-16 17:01
* Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to ...

http://docs.wex5.com/wex5-app-question-list-0010/  参考这个链接。我也是被这个问题折腾了好久。 如果你只有一个C盘,D盘为光驱。把D盘删除掉。
回复 支持 反对

使用道具 举报

0

主题

5

帖子

23

积分

新手上路

Rank: 1

积分
23
QQ
发表于 2016-9-30 14:53:19 | 显示全部楼层
kenminkajp 发表于 2016-3-16 17:01
* Try:
   Run with --stacktrace option to get the stack trace. Run with --info or --debug option to ...

http://docs.wex5.com/wex5-app-question-list-0010/  参考这个链接。我也是被这个问题折腾了好久。 如果你只有一个C盘,D盘为光驱。把D盘删除掉。
回复 支持 反对

使用道具 举报

0

主题

1

帖子

3

积分

新手上路

Rank: 1

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

我的也出现这个问题,试了好多办法,最后重新解压了 安装压缩包,换了个路径就OK了。 原先放的路径是桌面,后来改到D盘根目录下。第一次解压缩包是出现了提示信息,我没在意,直接解压的,我的应该是这这两个问题,大家的是不是这个问题就不清楚了,给大家提供一个方向,可以试试。
回复 支持 反对

使用道具 举报

1

主题

4

帖子

10

积分

新手上路

Rank: 1

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

这个问题是怎么解决的啊,同样的问题,困扰半天了
回复 支持 反对

使用道具 举报

9

主题

57

帖子

155

积分

初级会员

Rank: 2

积分
155
QQ
发表于 2016-10-8 17:39:44 | 显示全部楼层
打包代理服务器升级后 能启动 但是连接失败怎么解决
回复 支持 反对

使用道具 举报

1

主题

7

帖子

27

积分

新手上路

Rank: 1

积分
27
QQ
发表于 2016-10-13 09:50:07 | 显示全部楼层
报错情况三

android应用环境准备:
   
ios应用环境准备:
   
生成android应用包:
   Unsupported global orientation: all
   Defaulting to value: default
   Running command: cmd "/s /c "E:\WeX5\model\Native\RailGuard\build\src\platforms\android\cordova\build.bat --debug --gradleArg=--offline""
   ANDROID_HOME=E:\WeX5\tools\adt-sdk
   JAVA_HOME=E:\WeX5\java\jre1.8
   Running: E:\WeX5\model\Native\RailGuard\build\src\platforms\android\gradlew cdvBuildDebug -b E:\WeX5\model\Native\RailGuard\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
   :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 重新编译。
   注: E:\WeX5\model\Native\RailGuard\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
   :processDebugResources
   :generateDebugSources
   E:\WeX5\model\Native\RailGuard\build\src\platforms\android\src\RailGuaid\Display\ui\MainActivity.java:20: 错误: 需要<标识符>
   package RailGuaid.Display.ui.;
                                ^
   E:\WeX5\model\Native\RailGuard\build\src\platforms\android\build\generated\source\r\debug\RailGuaid\Display\ui\R.java:8: 错误: 需要<标识符>
   package RailGuaid.Display.ui.;
                                ^
   E:\WeX5\model\Native\RailGuard\build\src\platforms\android\build\generated\source\buildConfig\debug\RailGuaid\Display\ui\BuildConfig.java:4: 错误: 需要<标识符>
   package RailGuaid.Display.ui.;
                                ^
   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: 31.57 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
   
   E:\WeX5\model\Native\RailGuard\build\src\platforms\android\cordova\node_modules\q\q.js:126
                       throw e;
                       ^
   Error code 1 for command: cmd with args: /s /c "E:\WeX5\model\Native\RailGuard\build\src\platforms\android\gradlew cdvBuildDebug -b E:\WeX5\model\Native\RailGuard\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

主题

2

帖子

4

积分

新手上路

Rank: 1

积分
4
QQ
发表于 2016-10-16 14:13:28 | 显示全部楼层
执行
执行失败!,请下方文本框了解具体错误(复制信息:Windows用Ctrl+C复制,Mac OS X用鼠标右键选择“拷贝”)
详细信息

关闭
回复 支持 反对

使用道具 举报

0

主题

2

帖子

4

积分

新手上路

Rank: 1

积分
4
QQ
发表于 2016-10-16 14:15:18 | 显示全部楼层
   ****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
   C:\Users\ADMINI~1\AppData\Local\Temp\a5410834-c2c3-4c8f-acf3-0bc5960e20ee\genSource.xml:122: 插件“com.justep.cordova.plugin.weixin.v3”参数“微信应用ID(weixin_appid)”未设置,此参数为必须
           at com.justep.tools.ant.task.app.AddPluginsTask.a(Unknown Source)
           at com.justep.tools.ant.task.app.AddPluginsTask.a(Unknown Source)
           at com.justep.tools.ant.task.app.AddPluginsTask.execute(Unknown Source)
           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****: 任务 "prepareSource" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: -3
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
回复 支持 反对

使用道具 举报

1

主题

6

帖子

22

积分

新手上路

Rank: 1

积分
22
QQ
发表于 2016-10-20 22:03:51 | 显示全部楼层
gsgkm 发表于 2016-10-16 14:15
****ERROR****: 子任务 "addPlugins" 执行失败。
   ****ERROR****: 任务 "addPlugins" 执行失败。
   * ...

解决了吗?我也遇到这个问题
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-18 22:27 , Processed in 0.079087 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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