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

QQ登录

只需一步,快速开始

查看: 2129|回复: 4

[处理中1] 生成android版App时失败

[复制链接]

5

主题

13

帖子

29

积分

新手上路

Rank: 1

积分
29
QQ
发表于 2016-7-28 20:21:33 | 显示全部楼层 |阅读模式
开始......
保存配置信息:
编译UI资源:
清除编译环境:
复制模版工程:
复制工程:
复制插件:
加密UI资源:
更新工程信息:
增加插件:
   使用到的插件: [org.apache.cordova.splashscreen, org.apache.cordova.splashscreen]
   开始准备插件参数......
   插件参数准备完成
   开始安装插件......
   Installing "org.apache.cordova.splashscreen" for android
   Installing "org.apache.cordova.splashscreen" for ios
   插件安装完成
创建源代码工程:
android应用环境准备:
ios应用环境准备:
生成android应用包:
   Running command: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\cordova\build.bat --debug
   Buildfile: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\build.xml
   Buildfile: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\build.xml
   
   -check-env:
    [checkenv] Android SDK Tools Revision 24.3.1
    [checkenv] Installed at F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\tools\adt-sdk
   -setup:
   -set-mode-check:
   -set-debug-files:
   -check-env:
    [checkenv] Android SDK Tools Revision 24.3.1
    [checkenv] Installed at F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\tools\adt-sdk
   -setup:
        [echo] Project Name: X5
        [echo] Project Name: X5
     [gettype] Project Type: Application
     [gettype] Project Type: Application
   
   -pre-clean:
   
   clean:
   
   -set-debug-mode:
   
   -debug-obfuscation-check:
   
   -pre-build:
   
   -build-setup:
   [getlibpath] Library dependencies:
   [getlibpath]
   [getlibpath] ------------------
   [getlibpath] Ordered libraries:
   [getbuildtools] Using latest Build Tools: 22.0.1
        [echo] Resolving Build Target for X5...
   [gettarget] Project Target:   Android 5.0.1
   [gettarget] API level:        21
        [echo] ----------
        [echo] Creating output directories if needed...
       [mkdir] Created dir: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\bin
       [mkdir] Created dir: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\bin\res
       [mkdir] Created dir: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\bin\rsObj
       [mkdir] Created dir: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\bin\rsLibs
       [mkdir] Created dir: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\gen
       [mkdir] Created dir: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\bin\classes
       [mkdir] Created dir: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\bin\dexedLibs
        [echo] ----------
        [echo] Resolving Dependencies for X5...
   [dependency] Library dependencies:
   [dependency]
   [dependency] ------------------
   [dependency] Ordered libraries:
   
   nodeps:
   
   -check-env:
    [checkenv] Android SDK Tools Revision 24.3.1
    [checkenv] Installed at F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\tools\adt-sdk
   
   -setup:
        [echo] Project Name: X5
     [gettype] Project Type: Android Library
   [dependency]
   [dependency] ------------------
        [echo] ----------
        [echo] Building Libraries with 'debug'...
   
   -pre-clean:
   
   clean:
   
   BUILD SUCCESSFUL
   Total time: 0 seconds
   
   nodeps:
   
   -set-mode-check:
   
   -set-debug-files:
   
   -check-env:
    [checkenv] Android SDK Tools Revision 24.3.1
    [checkenv] Installed at F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\tools\adt-sdk
   
   -setup:
        [echo] Project Name: X5
     [gettype] Project Type: Android Library
   
   

5

主题

13

帖子

29

积分

新手上路

Rank: 1

积分
29
QQ
 楼主| 发表于 2016-7-28 20:22:07 | 显示全部楼层
-set-debug-mode:
   
   -debug-obfuscation-check:
   
   -pre-build:
   
   -build-setup:
   [getbuildtools] Using latest Build Tools: 22.0.1
        [echo] Resolving Build Target for X5...
   [gettarget] Project Target:   Android 5.0.1
   [gettarget] API level:        21
        [echo] ----------
        [echo] Creating output directories if needed...
       [mkdir] Created dir: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\CordovaLib\libs
       [mkdir] Created dir: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\CordovaLib\bin
       [mkdir] Created dir: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\CordovaLib\bin\res
       [mkdir] Created dir: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\CordovaLib\bin\rsObj
       [mkdir] Created dir: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\CordovaLib\bin\rsLibs
       [mkdir] Created dir: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\CordovaLib\gen
       [mkdir] Created dir: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\CordovaLib\bin\classes
       [mkdir] Created dir: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\CordovaLib\bin\dexedLibs
        [echo] ----------
        [echo] Resolving Dependencies for X5...
   [dependency] Library dependencies:
   [dependency] No Libraries
   [dependency]
   [dependency] ------------------
   
   -code-gen:
   [mergemanifest] Merging AndroidManifest files into one.
   [mergemanifest] Manifest merger disabled. Using project manifest only.
        [echo] Handling aidl files...
        [aidl] No AIDL files to compile.
        [echo] ----------
        [echo] Handling RenderScript files...
        [echo] ----------
        [echo] Handling Resources...
        [aapt] Generating resource IDs...
        [echo] ----------
        [echo] Handling BuildConfig class...
   [buildconfig] Generating BuildConfig class.
   
   -pre-compile:
   
   -compile:
   
   BUILD FAILED
   F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\tools\adt-sdk\tools\ant\build.xml:597: The following error occurred while executing this line:
   F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\tools\adt-sdk\tools\ant\build.xml:716: The following error occurred while executing this line:
   F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\tools\adt-sdk\tools\ant\build.xml:730: java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main : Unsupported major.minor version 52.0
           at java.lang.ClassLoader.defineClass1(Native Method)
           at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
           at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
           at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
           at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
           at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
           at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
           at java.security.AccessController.doPrivileged(Native Method)
           at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
           at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName(Class.java:190)
           at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.doesModernCompilerExist(CompilerAdapterFactory.java:167)
           at org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:126)
           at org.apache.tools.ant.taskdefs.Javac.findSupportedFileExtensions(Javac.java:979)
           at org.apache.tools.ant.taskdefs.Javac.scanDir(Javac.java:956)
           at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:927)
           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:606)
           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.taskdefs.Sequential.execute(Sequential.java:68)
           at com.android.ant.IfElseTask.execute(IfElseTask.java:120)
           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:606)
           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.taskdefs.Sequential.execute(Sequential.java:68)
           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:606)
           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.taskdefs.MacroInstance.execute(MacroInstance.java:396)
           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:606)
           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.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
           at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
           at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:440)
           at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:306)
           at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:221)
           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:606)
           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.taskdefs.Sequential.execute(Sequential.java:68)
           at com.android.ant.IfElseTask.execute(IfElseTask.java:120)
           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:606)
           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 org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
           at org.apache.tools.ant.Project.executeTargets(Project.java:1248)
           at org.apache.tools.ant.Main.runBuild(Main.java:851)
           at org.apache.tools.ant.Main.startAnt(Main.java:235)
           at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
           at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
   
   Total time: 0 seconds
   
   F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\cordova\node_modules\q\q.js:126
                       throw e;
                             ^
   Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\build.xml
   Error: F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\model\Native\MF\build\src\platforms\android\cordova\build.bat: Command failed with exit code 8
      
回复 支持 反对

使用道具 举报

5

主题

13

帖子

29

积分

新手上路

Rank: 1

积分
29
QQ
 楼主| 发表于 2016-7-28 20:22:34 | 显示全部楼层
at ChildProcess.whenDone (F:\WeX5_V3.2.1_pre\WeX5_V3.2.1_pre\tools\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
       at ChildProcess.EventEmitter.emit (events.js:98:17)
       at maybeClose (child_process.js:743:16)
       at Process.ChildProcess._handle.onexit (child_process.js:810:5)
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "buildAndroid" 执行失败。
****ERROR****: 执行出错:
****ERROR**** 错误信息: exec returned: 1
****ERROR**** 调用栈:
        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.GeneratedMethodAccessor70.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        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 Pack.execTask(Pack.java:51)
        at Pack.access$000(Pack.java:25)
        at Pack$1.run(Pack.java:95)
        at java.lang.Thread.run(Thread.java:745)
回复 支持 反对

使用道具 举报

5

主题

13

帖子

29

积分

新手上路

Rank: 1

积分
29
QQ
 楼主| 发表于 2016-7-28 20:23:26 | 显示全部楼层
按照教学视频做的第一个应用,就用了input和ouput框,结果生成就失败了,求大神指导下
回复 支持 反对

使用道具 举报

1

主题

3232

帖子

1174

积分

金牌会员

Rank: 6Rank: 6

积分
1174
QQ
发表于 2016-8-1 13:10:41 | 显示全部楼层
打包过程中,某些子任务,没有处理,你这个页面,在PC可以不报错跑起来么?
在问题解决后,希望大家可以吧解决方法也分享一下,这样可以让更多的X5开发者共同进步,谢谢大家的知识共享
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-22 01:17 , Processed in 0.055408 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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