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

QQ登录

只需一步,快速开始

楼主: liangshaohua

[分享] App打包常见报错

  [复制链接]

2

主题

4

帖子

10

积分

新手上路

Rank: 1

积分
10
QQ
发表于 2017-4-8 09:57:36 | 显示全部楼层
CHANGER_NI 发表于 2017-4-8 09:57
开始......
   
保存配置信息:

这个怎么办啊
回复 支持 反对

使用道具 举报

1

主题

5

帖子

19

积分

新手上路

Rank: 1

积分
19
QQ
发表于 2017-4-9 11:18:09 | 显示全部楼层
打包一个APP(使用了WikitudePlugin插件)时提示以下错误。不知道怎么处理?

C:\WeX5_V3.6\model\Native\SampleAppWikitude\build\src\platforms\android\src\com\wikitude\phonegap\WikitudePlugin.java:274: 错误: 找不到符号
                  if (!this.cordova.hasPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE))
                                   ^
        符号:   方法 hasPermission(String)
        位置: 类型为CordovaInterface的变量 cordova
      C:\WeX5_V3.6\model\Native\SampleAppWikitude\build\src\platforms\android\src\com\wikitude\phonegap\WikitudePlugin.java:278: 错误: 找不到符号
                      this.cordova.requestPermissions(this, EXTERNAL_STORAGE_PERMISSION_REQUEST_CODE,  new String[] {Manifest.permission.WRITE_EXTERNAL_STORAGE});
                                  ^
        符号:   方法 requestPermissions(WikitudePlugin,int,String[])
        位置: 类型为CordovaInterface的变量 cordova
      C:\WeX5_V3.6\model\Native\SampleAppWikitude\build\src\platforms\android\src\com\wikitude\phonegap\WikitudePlugin.java:485: 错误: 找不到符号
                  boolean cameraPermissionRequestRequired = !cordova.hasPermission(Manifest.permission.CAMERA);
                                                                    ^
        符号:   方法 hasPermission(String)
        位置: 类型为CordovaInterface的变量 cordova
      C:\WeX5_V3.6\model\Native\SampleAppWikitude\build\src\platforms\android\src\com\wikitude\phonegap\WikitudePlugin.java:486: 错误: 找不到符号
                  _locationPermissionRequestRequired = !cordova.hasPermission(Manifest.permission.ACCESS_FINE_LOCATION) && !cordova.hasPermission(Manifest.permission.ACCESS_COARSE_LOCATION);
                                                               ^
        符号:   方法 hasPermission(String)
        位置: 类型为CordovaInterface的变量 cordova
      C:\WeX5_V3.6\model\Native\SampleAppWikitude\build\src\platforms\android\src\com\wikitude\phonegap\WikitudePlugin.java:486: 错误: 找不到符号
                  _locationPermissionRequestRequired = !cordova.hasPermission(Manifest.permission.ACCESS_FINE_LOCATION) && !cordova.hasPermission(Manifest.permission.ACCESS_COARSE_LOCATION);
                                                                                                                                   ^
        符号:   方法 hasPermission(String)
        位置: 类型为CordovaInterface的变量 cordova
      C:\WeX5_V3.6\model\Native\SampleAppWikitude\build\src\platforms\android\src\com\wikitude\phonegap\WikitudePlugin.java:491: 错误: 找不到符号
                      this.cordova.requestPermissions(this, REQUEST_ACCESS_REQUEST_CODE, new String[] { Manifest.permission.CAMERA, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION});
                                  ^
        符号:   方法 requestPermissions(WikitudePlugin,int,String[])
        位置: 类型为CordovaInterface的变量 cordova
      C:\WeX5_V3.6\model\Native\SampleAppWikitude\build\src\platforms\android\src\com\wikitude\phonegap\WikitudePlugin.java:493: 错误: 找不到符号
                      this.cordova.requestPermission(this, REQUEST_ACCESS_REQUEST_CODE, Manifest.permission.CAMERA);
                                  ^
        符号:   方法 requestPermission(WikitudePlugin,int,String)
        位置: 类型为CordovaInterface的变量 cordova
      C:\WeX5_V3.6\model\Native\SampleAppWikitude\build\src\platforms\android\src\com\wikitude\phonegap\WikitudePlugin.java:496: 错误: 找不到符号
                      this.cordova.requestPermissions(this, REQUEST_ACCESS_REQUEST_CODE, new String[] { Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION});
                                  ^
        符号:   方法 requestPermissions(WikitudePlugin,int,String[])
        位置: 类型为CordovaInterface的变量 cordova
      C:\WeX5_V3.6\model\Native\SampleAppWikitude\build\src\platforms\android\src\com\wikitude\phonegap\WikitudePlugin.java:518: 错误: 找不到符号
                  boolean cameraPermissionRequestRequired = !cordova.hasPermission(Manifest.permission.CAMERA);
                                                                    ^
        符号:   方法 hasPermission(String)
        位置: 类型为CordovaInterface的变量 cordova
      C:\WeX5_V3.6\model\Native\SampleAppWikitude\build\src\platforms\android\src\com\wikitude\phonegap\WikitudePlugin.java:519: 错误: 找不到符号
                  _locationPermissionRequestRequired = !cordova.hasPermission(Manifest.permission.ACCESS_FINE_LOCATION) && !cordova.hasPermission(Manifest.permission.ACCESS_COARSE_LOCATION);
                                                               ^
        符号:   方法 hasPermission(String)
        位置: 类型为CordovaInterface的变量 cordova
      C:\WeX5_V3.6\model\Native\SampleAppWikitude\build\src\platforms\android\src\com\wikitude\phonegap\WikitudePlugin.java:519: 错误: 找不到符号
                  _locationPermissionRequestRequired = !cordova.hasPermission(Manifest.permission.ACCESS_FINE_LOCATION) && !cordova.hasPermission(Manifest.permission.ACCESS_COARSE_LOCATION);
                                                                                                                                   ^
        符号:   方法 hasPermission(String)
        位置: 类型为CordovaInterface的变量 cordova
      C:\WeX5_V3.6\model\Native\SampleAppWikitude\build\src\platforms\android\src\com\wikitude\phonegap\WikitudePlugin.java:524: 错误: 找不到符号
                      this.cordova.requestPermissions(this, CAMERA_PERMISSION_REQUEST_CODE, new String[] { Manifest.permission.CAMERA, Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION});
                                  ^
        符号:   方法 requestPermissions(WikitudePlugin,int,String[])
        位置: 类型为CordovaInterface的变量 cordova
      C:\WeX5_V3.6\model\Native\SampleAppWikitude\build\src\platforms\android\src\com\wikitude\phonegap\WikitudePlugin.java:526: 错误: 找不到符号
                      this.cordova.requestPermission(this, CAMERA_PERMISSION_REQUEST_CODE, Manifest.permission.CAMERA);
                                  ^
        符号:   方法 requestPermission(WikitudePlugin,int,String)
        位置: 类型为CordovaInterface的变量 cordova
      C:\WeX5_V3.6\model\Native\SampleAppWikitude\build\src\platforms\android\src\com\wikitude\phonegap\WikitudePlugin.java:529: 错误: 找不到符号
                      this.cordova.requestPermissions(this, CAMERA_PERMISSION_REQUEST_CODE, new String[] { Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION});
                                  ^
        符号:   方法 requestPermissions(WikitudePlugin,int,String[])
        位置: 类型为CordovaInterface的变量 cordova
      C:\WeX5_V3.6\model\Native\SampleAppWikitude\build\src\platforms\android\src\com\wikitude\phonegap\WikitudePlugin.java:1131: 错误: 方法不会覆盖或实现超类型的方法
          @Override
          ^
      注: 某些输入文件使用或覆盖了已过时的 API。
      注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
      注: 某些输入文件使用了未经检查或不安全的操作。
      注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
      15 个错误
      
      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: 1 mins 58.423 secs

提示
回复 支持 反对

使用道具 举报

0

主题

1

帖子

5

积分

新手上路

Rank: 1

积分
5
QQ
发表于 2017-4-15 22:16:34 | 显示全部楼层
【部署到CloudX5】
compressTar-www-hash
   
compressTar-www-version
   
压缩www:
   
压缩model:
   
压缩用户数据:
   
登录到CloudX5:
   
部署到CloudX5:
   上传部署的资源到CloudX5服务器......
   上传资源完成
   更新CloudX5服务......
****ERROR****: 子任务 "UpgradePaaSService" 执行失败。
****ERROR****: 任务 "deploy" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: 执行HTTP请求失败,错误信息:首页地址设置失败,错误原因为:/usr/local/dist/f7905c8c21da11e7bbc7022f0bc9805f/home/project.confis not exist!
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
回复 支持 反对

使用道具 举报

0

主题

4

帖子

40

积分

新手上路

Rank: 1

积分
40
QQ
发表于 2017-4-19 20:11:44 | 显示全部楼层
复制工程:
   
复制插件:
   
复制WWW资源:
   
更新工程信息:
   
增加插件:
   使用到的插件: [phonegap-nfc, cordova-plugin-whitelist, cordova-plugin-splashscreen, cordova-plugin-app-preferences, com.justep.cordova.plugin.app.utils, cordova-plugin-x-toast, cordova-plugin-inappbrowser, cordova-plugin-app-version, com.chariotsolutions.nfc.plugin]
   开始安装插件......
****ERROR****: 子任务 "addPlugins" 执行失败。
****ERROR****: 任务 "addPlugins" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: java.io.FileNotFoundException: G:\WEX5\model\Native\plugins\com.chariotsolutions.nfc.plugin\plugin.xml (系统找不到指定的路径。)
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
回复 支持 反对

使用道具 举报

1

主题

3

帖子

5

积分

新手上路

Rank: 1

积分
5
QQ
发表于 2017-4-21 11:26:04 | 显示全部楼层
at org.apache.tools.ant.taskdefs.Delete.handle(Delete.java:719)
           at org.apache.tools.ant.taskdefs.Delete.removeDir(Delete.java:774)
           at org.apache.tools.ant.taskdefs.Delete.execute(Delete.java:586)
           at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:292)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           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
回复 支持 反对

使用道具 举报

0

主题

14

帖子

22

积分

新手上路

Rank: 1

积分
22
QQ
发表于 2017-4-25 11:28:53 | 显示全部楼层
wex5  各种垃圾 各种坑, 受不了, 我压根没用到微信  也报这个错误, 麻痹,垃圾架构,狗屁架构,浪费我时间, 下一个APP绝不用Wex5 开发

“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)
回复 支持 反对

使用道具 举报

4

主题

5

帖子

15

积分

新手上路

Rank: 1

积分
15
QQ
发表于 2017-4-26 21:36:16 | 显示全部楼层
    Execution failed for task ':JustepGetContent:mergeReleaseResources'.
      > C:\Users\Administrator\Desktop\WeX5_V3.6\model\Native\wd2\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.6\model\Native\wd2\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.
      :JustepGetContent:mergeReleaseResources
      C:\Users\Administrator\Desktop\WeX5_V3.6\model\Native\wd2\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.6\model\Native\wd2\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: 34.918 secs
   C:\Users\ADMINI~1\AppData\Local\Temp\82420b73-beda-4f66-ad67-912ecdecddcc\pack.xml:88: exec returned: 1
           at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
           at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
           at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
           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 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
      
      C:\Users\Administrator\Desktop\WeX5_V3.6\model\Native\wd2\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.6\model\Native\wd2\build\src\platforms\android\gradlew cdvBuildDebug -b C:\Users\Administrator\Desktop\WeX5_V3.6\model\Native\wd2\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
****ERROR****: 子任务 "java" 执行失败。
****ERROR****: 任务 "pack" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: -3
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
回复 支持 反对

使用道具 举报

0

主题

1

帖子

9

积分

新手上路

Rank: 1

积分
9
QQ
发表于 2017-4-30 23:07:23 | 显示全部楼层
iso打包出错,请问这个是什么问题? QQ截图20170430225605.png
回复 支持 反对

使用道具 举报

2

主题

6

帖子

14

积分

新手上路

Rank: 1

积分
14
QQ
发表于 2017-5-4 17:08:25 | 显示全部楼层
      
   生成ios应用包:
      Running command: /Users/MyMac/Desktop/WeX5_V3.6-mac/model/Native/外卖/build/src/platforms/ios/cordova/build --debug --device
      Building project  : /Users/MyMac/Desktop/WeX5_V3.6-mac/model/Native/外卖/build/src/platforms/ios/外卖.xcodeproj
              Configuration : Debug
              Platform      : device
   /var/folders/yj/07_vz3dx3ls4glp7tnmr4mk40000gn/T/d81852e2-fc22-4761-b129-f7e8956bdb22/pack.xml:118: exec returned: 1
      ERROR building one of the platforms: Error: /Users/MyMac/Desktop/WeX5_V3.6-mac/model/Native/外卖/build/src/platforms/ios/cordova/build: Command failed with exit code 2        at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
      You may not have the required environment or OS to build this project
      
   
      
           at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)   Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license” and then retry this command.
           at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
   
      
      
           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)
      Error code 69 for command: xcodebuild with args: -xcconfig,/Users/MyMac/Desktop/WeX5_V3.6-mac/model/Native/外卖/build/src/platforms/ios/cordova/build-debug.xcconfig,-project,外卖.xcodeproj,ARCHS=armv7 arm64,-target,外卖,-configuration,Debug,-sdk,iphoneos,build,VALID_ARCHS=armv7 arm64,CONFIGURATION_BUILD_DIR=/Users/MyMac/Desktop/WeX5_V3.6-mac/model/Native/外卖/build/src/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/MyMac/Desktop/WeX5_V3.6-mac/model/Native/外卖/build/src/platforms/ios/build/sharedpch
      Error: /Users/MyMac/Desktop/WeX5_V3.6-mac/model/Native/外卖/build/src/platforms/ios/cordova/build: Command failed with exit code 2
   ****ERROR****: 子任务 "exec" 执行失败。
           at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1393)****ERROR****: 任务 "buildIOS" 执行失败。
           at org.apache.tools.ant.Project.executeTarget(Project.java:1364)
   
   ****ERROR****: 执行出错:
   ****ERROR****: 错误信息: exec returned: 1
           at com.justep.deploy.app.utils.BuildHelper.execTask(Unknown Source)
           at com.justep.deploy.app.utils.Builder.main(Unknown Source)
   ****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
****ERROR****: 子任务 "java" 执行失败。
****ERROR****: 任务 "pack" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: 253
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
回复 支持 反对

使用道具 举报

0

主题

2

帖子

4

积分

新手上路

Rank: 1

积分
4
QQ
发表于 2017-5-17 13:57:55 | 显示全部楼层
returned: 1
           at org.apache.tools.ant.taskdefs.ExecTask.runExecute(ExecTask.java:643)
           at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:669)
           at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:495)
           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****: 任务 "pack" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: -3
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-8-17 05:54 , Processed in 0.058361 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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