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

QQ登录

只需一步,快速开始

查看: 1122|回复: 7

[结贴] App常见报错未找到改错误解决方法,求处理

[复制链接]

3

主题

9

帖子

11

积分

新手上路

Rank: 1

积分
11
QQ
发表于 2016-2-19 16:42:33 | 显示全部楼层 |阅读模式
创建源代码工程:
   
android应用环境准备:
   
ios应用环境准备:
   
生成android应用包:
   Running command: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\cordova\build.bat --debug
   Buildfile: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\build.xml
   Buildfile: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\build.xml
   
   -check-env:
    [checkenv] Android SDK Tools Revision 24.3.1
    [checkenv] Installed at E:\WeX5\WeX5v3.3\anzhuo\tools\adt-sdk
   
   -setup:
   
   -set-mode-check:
   
   -set-debug-files:
   
   -check-env:
        [echo] Project Name: X5
    [checkenv] Android SDK Tools Revision 24.3.1
    [checkenv] Installed at E:\WeX5\WeX5v3.3\anzhuo\tools\adt-sdk
   
   -setup:
        [echo] Project Name: X5
     [gettype] Project Type: Application
   
   -pre-clean:
   
   clean:
     [gettype] Project Type: Application
   
   -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: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\bin
       [mkdir] Created dir: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\bin\res
       [mkdir] Created dir: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\bin\rsObj
       [mkdir] Created dir: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\bin\rsLibs
       [mkdir] Created dir: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\gen
       [mkdir] Created dir: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\bin\classes
       [mkdir] Created dir: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\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 E:\WeX5\WeX5v3.3\anzhuo\tools\adt-sdk
   
   -setup:
        [echo] Project Name: X5
     [gettype] Project Type: Android Library
   [dependency]
   [dependency] ------------------
   
   -pre-clean:
   
   clean:
        [echo] ----------
        [echo] Building Libraries with 'debug'...
   
   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 E:\WeX5\WeX5v3.3\anzhuo\tools\adt-sdk
   
   -setup:
        [echo] Project Name: X5
     [gettype] Project Type: Android Library
   
   -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: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\CordovaLib\libs
       [mkdir] Created dir: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\CordovaLib\bin
       [mkdir] Created dir: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\CordovaLib\bin\res
       [mkdir] Created dir: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\CordovaLib\bin\rsObj
       [mkdir] Created dir: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\CordovaLib\bin\rsLibs
       [mkdir] Created dir: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\CordovaLib\gen
       [mkdir] Created dir: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\CordovaLib\bin\classes
       [mkdir] Created dir: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\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:
       [javac] Compiling 95 source files to E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\CordovaLib\bin\classes
       [javac] 注: 某些输入文件使用或覆盖了已过时的 API。
       [javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
        [echo] Creating library output jar file...
         [jar] Building jar: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\CordovaLib\bin\classes.jar
   
   -post-compile:
   
   -obfuscate:
   
   -dex:
        [echo] Library project: do not convert bytecode...
   
   -crunch:
      [crunch] Crunching PNG Files in source dir: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\CordovaLib\res
      [crunch] To destination dir: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\CordovaLib\bin\res
      [crunch] Crunched 0 PNG files to update cache
   
   -package-resources:
        [echo] Library project: do not package resources...
   
   -package:
        [echo] Library project: do not package apk...
   
   -post-package:
   
   -do-debug:
        [echo] Library project: do not create apk...
   [propertyfile] Creating new property file: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\CordovaLib\bin\build.prop
   [propertyfile] Updating property file: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\CordovaLib\bin\build.prop
   [propertyfile] Updating property file: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\CordovaLib\bin\build.prop
   [propertyfile] Updating property file: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\CordovaLib\bin\build.prop
   
   -post-build:
   
   debug:
   
   -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:
       [javac] Compiling 6 source files to E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\bin\classes
       [javac] 注: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\src\com\justep\hello\X5.java使用或覆盖了已过时的 API。
       [javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
   
   -post-compile:
   
   -obfuscate:
   
   -dex:
         [dex] input: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\bin\classes
         [dex] input: E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\CordovaLib\bin\classes.jar
         [dex] Pre-Dexing E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\CordovaLib\bin\classes.jar -> classes-7b3eba2cf497265a3ff8adb6164284b8.jar
          [dx] Error occurred during initialization of VM
          [dx] Could not reserve enough space for object heap
          [dx] Error: Could not create the Java Virtual Machine.
          [dx] Error: A fatal exception has occurred. Program will exit.
   
   BUILD FAILED
   E:\WeX5\WeX5v3.3\anzhuo\tools\adt-sdk\tools\ant\build.xml:888: The following error occurred while executing this line:
   E:\WeX5\WeX5v3.3\anzhuo\tools\adt-sdk\tools\ant\build.xml:890: The following error occurred while executing this line:
   E:\WeX5\WeX5v3.3\anzhuo\tools\adt-sdk\tools\ant\build.xml:902: The following error occurred while executing this line:
   E:\WeX5\WeX5v3.3\anzhuo\tools\adt-sdk\tools\ant\build.xml:283: null returned: 1
   
   Total time: 4 seconds
   
   E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\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,E:\WeX5\WeX5v3.3\anzhuo\model\Native\hello\build\src\platforms\android\build.xml
****ERROR****: 子任务 "exec" 执行失败。
****ERROR****: 任务 "buildAndroid" 执行失败。
****ERROR****: 执行出错:
****ERROR****: 错误信息: exec returned: 1
****ERROR****: 如不能确定具体问题,可参考常见问题: http://bbs.wex5.com/thread-82002-1-1.html
发表于 2016-2-19 16:48:20 | 显示全部楼层
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

3

主题

9

帖子

11

积分

新手上路

Rank: 1

积分
11
QQ
 楼主| 发表于 2016-2-19 16:53:15 | 显示全部楼层
liangyongfei 发表于 2016-2-19 16:48
应该是这个问题:http://bbs.wex5.com/forum.php?mod=redirect&goto=findpost&ptid=82002&pid=165192095 ...

请问是第几个?
回复 支持 反对

使用道具 举报

发表于 2016-2-19 17:00:16 | 显示全部楼层

17楼,就是内存问题!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

3

主题

9

帖子

11

积分

新手上路

Rank: 1

积分
11
QQ
 楼主| 发表于 2016-2-19 17:10:41 | 显示全部楼层
liangyongfei 发表于 2016-2-19 17:00
17楼,就是内存问题!

内存问题已解决,但还是报错 , 做天打包好好的 , 后来照视频做记账本部署未成功,之后重新按教程做,就报这个错了
回复 支持 反对

使用道具 举报

发表于 2016-2-19 17:38:17 | 显示全部楼层
tanlin2016 发表于 2016-2-19 17:10
内存问题已解决,但还是报错 , 做天打包好好的 , 后来照视频做记账本部署未成功,之后重新按教程做,就 ...

那建议你重启下机器试试!
是不是机器内存不足了呢?你看下任务管理器,内存和cpu正常吗?
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

3

主题

9

帖子

11

积分

新手上路

Rank: 1

积分
11
QQ
 楼主| 发表于 2016-2-19 18:07:09 | 显示全部楼层
liangyongfei 发表于 2016-2-19 17:38
那建议你重启下机器试试!
是不是机器内存不足了呢?你看下任务管理器,内存和cpu正常吗? ...

1.png
内存是够的,昨天按视频教程做记账本,打包完成了,但是部署没弄好,今天想重新做一遍第一个例子,结果打包死活打不了
回复 支持 反对

使用道具 举报

发表于 2016-2-19 18:14:05 | 显示全部楼层
tanlin2016 发表于 2016-2-19 18:07
内存是够的,昨天按视频教程做记账本,打包完成了,但是部署没弄好,今天想重新做一遍第一个例子,结果 ...

那其他案例是可以正常打包的吗??你新建重新打包试试!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-2 10:49 , Processed in 0.074468 second(s), 27 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

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