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

QQ登录

只需一步,快速开始

查看: 1622|回复: 6

[结贴] 打包错误

[复制链接]

78

主题

196

帖子

427

积分

中级会员

Rank: 3Rank: 3

积分
427
QQ
发表于 2017-7-6 14:25:44 | 显示全部楼层 |阅读模式
4.PNG
安装在低版本安卓,以前必须用Crosswalk引擎,才能使用SQLite,现在用Wex5_3.7,选择Crosswalk引擎打包就错误,不选就用不了SQLite。

E:\WeiYun\Wex5_3.7_Pre\model\Native\DMCS\build\src\platforms\android\JustepGetContent\src\main\java\com\justep\x5\support\chooser\FileUploadChooserActivity.java使用了未经检查或不安全的操作。      注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。      :JustepGetContent:extractReleaseAnnotations      :JustepGetContent:mergeReleaseShaders      :JustepGetContent:compileReleaseShaders      :JustepGetContent:generateReleaseAssets      :JustepGetContent:mergeReleaseAssets      :JustepGetContent:mergeReleaseProguardFiles      :JustepGetContent:packageReleaseRenderscript UP-TO-DATE      :JustepGetContent:packageReleaseResources      :JustepGetContent:processReleaseJavaRes UP-TO-DATE      :JustepGetContent:transformResourcesWithMergeJavaResForRelease      :JustepGetContent:transformClassesAndResourcesWithSyncLibJarsForRelease      :JustepGetContent:mergeReleaseJniLibFolders      :JustepGetContent:transformNativeLibsWithMergeJniLibsForRelease      :JustepGetContent:transformNativeLibsWithSyncJniLibsForRelease      :JustepGetContent:bundleRelease      :CordovaLib:prepareDebugDependencies      :CordovaLib:compileDebugAidl      :CordovaLib:compileDebugNdk UP-TO-DATE      :CordovaLib:compileLint      :CordovaLib:copyDebugLint UP-TO-DATE      :CordovaLib:compileDebugRenderscript      :CordovaLib:generateDebugBuildConfig      :CordovaLib:generateDebugResValues      :CordovaLib:generateDebugResources      :CordovaLib:mergeDebugResources      :CordovaLib:processDebugManifest      :CordovaLib:processDebugResources      :CordovaLib:generateDebugSources      :CordovaLib:incrementalDebugJavaCompilationSafeguard      :CordovaLib:javaPreCompileDebug      :CordovaLib:compileDebugJavaWithJavac      :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).      注: 某些输入文件使用或覆盖了已过时的 API。      注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。      :CordovaLib:extractDebugAnnotations      :CordovaLib:mergeDebugShaders      :CordovaLib:compileDebugShaders      :CordovaLib:generateDebugAssets      :CordovaLib:mergeDebugAssets      :CordovaLib:mergeDebugProguardFiles      :CordovaLib:packageDebugRenderscript UP-TO-DATE      :CordovaLib:packageDebugResources      :CordovaLib:processDebugJavaRes UP-TO-DATE      :CordovaLib:transformResourcesWithMergeJavaResForDebug      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug      :CordovaLib:mergeDebugJniLibFolders      :CordovaLib:transformNativeLibsWithMergeJniLibsForDebug      :CordovaLib:transformNativeLibsWithSyncJniLibsForDebug      :CordovaLib:bundleDebug      :prepareArmv7DebugDependencies      :compileArmv7DebugAidl      :compileArmv7DebugRenderscript      :generateArmv7DebugBuildConfig      :mergeArmv7DebugShaders      :compileArmv7DebugShaders      :generateArmv7DebugAssets      :mergeArmv7DebugAssets      :createXwalkCommandLineFileArmv7Debug      :generateArmv7DebugResValues      :generateArmv7DebugResources      :mergeArmv7DebugResources      E:\WeiYun\Wex5_3.7_Pre\model\Native\DMCS\build\src\platforms\android\AndroidManifest.xml:33:5-74 Error:              uses-sdk:minSdkVersion 14 cannot be smaller than version 18 declared in library [android:CordovaLib:unspecified:debug] E:\WeiYun\Wex5_3.7_Pre\model\Native\DMCS\build\src\platforms\android\CordovaLib\build\intermediates\bundles\debug\AndroidManifest.xml              Suggestion: use toolsverrideLibrary="org.apache.cordova" to force usage            FAILURE: Build failed with an exception.            * What went wrong:      Execution failed for task ':processArmv7DebugManifest'.      > Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 18 declared in library [android:CordovaLib:unspecified:debug] E:\WeiYun\Wex5_3.7_Pre\model\Native\DMCS\build\src\platforms\android\CordovaLib\build\intermediates\bundles\debug\AndroidManifest.xml              Suggestion: use toolsverrideLibrary="org.apache.cordova" to force usage            * Try:      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.      :processArmv7DebugManifest            See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.            :processArmv7DebugManifest FAILED            BUILD FAILED            Total time: 16.539 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:\WeiYun\Wex5_3.7_Pre\model\Native\DMCS\build\src\platforms\android\cordova\node_modules\q\q.js:126                          throw e;                          ^      Error code 1 for command: cmd with args: /s /c "E:\WeiYun\Wex5_3.7_Pre\model\Native\DMCS\build\src\platforms\android\gradlew cdvBuildDebug -b E:\WeiYun\Wex5_3.7_Pre\model\Native\DMCS\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   C:\Users\cooki\AppData\Local\Temp\3286d398-1e15-4022-b70e-b3d590e14e60\pack.xml:91: 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****: 子任务 "java" 执行失败。****ERROR****: 任务 "pack" 执行失败。****ERROR****: 执行出错:****ERROR****: 错误信息: Java returned: -3****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
Win10Home版,实时更新。
发表于 2017-7-6 14:51:04 | 显示全部楼层
不选中 Crosswalk引擎 也可以正常调用sqlite 的啊!
我这里,appLoader运行综合演示案例!
/UI2/portal/sample/index.w

sqlite的案例可以正常运行的!


一般情况打包低版本也不需要选择Crosswalk,因为使用腾讯引擎就可以了

qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

41

主题

837

帖子

2271

积分

金牌会员

搬砖工

Rank: 6Rank: 6

积分
2271
QQ
发表于 2017-7-6 15:00:11 | 显示全部楼层
自动选择不一样可以打包和使用sqlite吗
Wex5开发者,欢迎互相交流学习
交流群:30057529


我要成为代码女神
回复 支持 反对

使用道具 举报

78

主题

196

帖子

427

积分

中级会员

Rank: 3Rank: 3

积分
427
QQ
 楼主| 发表于 2017-7-6 15:57:34 | 显示全部楼层
qiuxinw66 发表于 2017-7-6 15:00
自动选择不一样可以打包和使用sqlite吗

1.首先选择Crosswalk引擎打包错误,这个问题需要解决。
2.如果自动打包可以解决一切问题,那么就不会有使用Crosswalk引擎了,所以有些场合还是需要的。
3.自动选择可以使用SQLite,这种说法不准确,是你没遇到,我明确说明不用Crosswalk无法使用SQLite。
回复 支持 反对

使用道具 举报

发表于 2017-7-6 16:51:01 | 显示全部楼层
cookie_79 发表于 2017-7-6 15:57
1.首先选择Crosswalk引擎打包错误,这个问题需要解决。
2.如果自动打包可以解决一切问题,那么就不会有使 ...

1.本地测试3.7 打包 选择Crosswalk引擎打包 仿途牛!打包正常没报错!
2. 一般情况!手机都安装了qq微信的!触发手机没有qq微信!(这样的低版本手机存在吗?概率很小吧!)
3. 本地测试 :/UI2/portal/sample/index.w  没问题的!你再试试 只 选择腾讯引擎可以吗?

qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

78

主题

196

帖子

427

积分

中级会员

Rank: 3Rank: 3

积分
427
QQ
 楼主| 发表于 2017-7-6 19:07:56 | 显示全部楼层
liangyongfei 发表于 2017-7-6 16:51
1.本地测试3.7 打包 选择Crosswalk引擎打包 仿途牛!打包正常没报错!
2. 一般情况!手机都安装了qq微信 ...

portal打包有问题,
我们的应用是安装在商米V1上的,不装微信,仅安装一个应用,配套仪器使用。
腾讯引擎,明天可以测试。
应该是Win10的问题,平台的好多下拉框都点不开,需要选择后用键盘的上下箭头选择。
希望用保持更新的Win10平台测试。      



E:\WeiYun\Wex5_3.7_Pre\model\Native\portal\build\src\platforms\android\AndroidManifest.xml:33:5-74 Error:
      :mergeArmv7DebugResources
      :processArmv7DebugManifest
      
      See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.
      
      :processArmv7DebugManifest FAILED
      
      BUILD FAILED
      
      Total time: 40.081 secs
              uses-sdk:minSdkVersion 14 cannot be smaller than version 18 declared in library [android:CordovaLib:unspecified:debug] E:\WeiYun\Wex5_3.7_Pre\model\Native\portal\build\src\platforms\android\CordovaLib\build\intermediates\bundles\debug\AndroidManifest.xml
              Suggestion: use toolsverrideLibrary="org.apache.cordova" to force usage
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':processArmv7DebugManifest'.
      > Manifest merger failed : uses-sdk:minSdkVersion 14 cannot be smaller than version 18 declared in library [android:CordovaLib:unspecified:debug] E:\WeiYun\Wex5_3.7_Pre\model\Native\portal\build\src\platforms\android\CordovaLib\build\intermediates\bundles\debug\AndroidManifest.xml
              Suggestion: use toolsverrideLibrary="org.apache.cordova" to force usage
      
      * 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: cmd: Command failed with exit code 1
      You may not have the required environment or OS to build this project
      
      E:\WeiYun\Wex5_3.7_Pre\model\Native\portal\build\src\platforms\android\cordova\node_modules\q\q.js:126
                          throw e;
                          ^
      Error code 1 for command: cmd with args: /s /c "E:\WeiYun\Wex5_3.7_Pre\model\Native\portal\build\src\platforms\android\gradlew cdvBuildDebug -b E:\WeiYun\Wex5_3.7_Pre\model\Native\portal\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
   C:\Users\cooki\AppData\Local\Temp\5696acca-37a7-424c-be7b-6638243ccb58\pack.xml:91: 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****: 子任务 "java" 执行失败。
****ERROR****: 任务 "pack" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: Java returned: -3
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
回复 支持 反对

使用道具 举报

78

主题

196

帖子

427

积分

中级会员

Rank: 3Rank: 3

积分
427
QQ
 楼主| 发表于 2017-7-6 19:15:21 | 显示全部楼层
liangyongfei 发表于 2017-7-6 16:51
1.本地测试3.7 打包 选择Crosswalk引擎打包 仿途牛!打包正常没报错!
2. 一般情况!手机都安装了qq微信 ...

用V3.6打包选择Crosswalk引擎就没有问题。

另外w文件移植到V37后,某些Button的图标改变了。

V37目前还不稳定。用回V36了,结贴吧。
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-2 12:00 , Processed in 0.070353 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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