cordova - Phonegap run android gives error -


i trying run basic hello-world app. totally frustrated can't find solution this. wrong? have tried these solutions still no luck. please me :'(

      c:\apps>phonegap create app3     [phonegap] create called options c:\apps\app3 com.phonegap.helloworld helloworld     [phonegap] customizing default config.xml file     [phonegap] created project @ c:\apps\app3      c:\apps>cd app3      c:\apps\app3>phonegap local run android     [phonegap] adding android platform...     creating cordova project android platform:             path: platforms\android             package: com.phonegap.helloworld             name: helloworld             android target: android-19     copying template files...     running: android update project --subprojects --path "platforms\android" --target android-19 --library "cordovalib"     resolved location of library project to: c:\apps\app3\platforms\android\cordovalib     updated , renamed default.properties project.properties     updated local.properties     no project name specified, using activity name 'helloworld'.     if wish change it, edit first line of build.xml.     added file c:\apps\app3\platforms\android\build.xml     added file c:\apps\app3\platforms\android\proguard-project.txt     updated project.properties     updated local.properties     no project name specified, using project folder name 'cordovalib'.     if wish change it, edit first line of build.xml.     added file c:\apps\app3\platforms\android\cordovalib\build.xml     added file c:\apps\app3\platforms\android\cordovalib\proguard-project.txt      project created.     cp: no such file or directory: c:\apps\app3\icon.png      cp: no such file or directory: c:\apps\app3\res\icon\ios\icon-72.png      [phonegap] compiling android...     cp: no such file or directory: c:\apps\app3\icon.png      cp: no such file or directory: c:\apps\app3\res\icon\ios\icon-72.png      buildfile: c:\apps\app3\platforms\android\build.xml       [taskdef] not load definitions resource emma_ant.properties. not found.      -set-mode-check:      -set-debug-files:      -check-env:      [checkenv] android sdk tools revision 23.0.0      [checkenv] installed @ f:\android\sdk-for-kepler\sdk      -setup:          [echo] project name: helloworld       [gettype] project type: application      -set-debug-mode:      -debug-obfuscation-check:      -pre-build:      -build-setup:     [getbuildtools] using latest build tools: 19.1.0          [echo] resolving build target helloworld...     [gettarget] project target:   android 4.4.2     [gettarget] api level:        19          [echo] ----------          [echo] creating output directories if needed...         [mkdir] created dir: c:\apps\app3\platforms\android\ant-build         [mkdir] created dir: c:\apps\app3\platforms\android\ant-build\res         [mkdir] created dir: c:\apps\app3\platforms\android\ant-build\rsobj         [mkdir] created dir: c:\apps\app3\platforms\android\ant-build\rslibs         [mkdir] created dir: c:\apps\app3\platforms\android\ant-gen         [mkdir] created dir: c:\apps\app3\platforms\android\ant-build\classes         [mkdir] created dir: c:\apps\app3\platforms\android\ant-build\dexedlibs          [echo] ----------          [echo] resolving dependencies helloworld...     [dependency] library dependencies:     [dependency]     [dependency] ------------------     [dependency] ordered libraries:     [dependency]     [dependency] ------------------          [echo] ----------          [echo] building libraries 'debug'...       [taskdef] not load definitions resource emma_ant.properties. not found.      nodeps:      -set-mode-check:      -set-debug-files:      -check-env:      [checkenv] android sdk tools revision 23.0.0      [checkenv] installed @ f:\android\sdk-for-kepler\sdk      -setup:          [echo] project name: cordovalib       [gettype] project type: android library      -set-debug-mode:      -debug-obfuscation-check:      -pre-build:      -build-setup:     [getbuildtools] using latest build tools: 19.1.0          [echo] resolving build target cordovalib...     [gettarget] project target:   android 4.4.2     [gettarget] api level:        19          [echo] ----------          [echo] creating output directories if needed...         [mkdir] created dir: c:\apps\app3\platforms\android\cordovalib\res         [mkdir] created dir: c:\apps\app3\platforms\android\cordovalib\libs         [mkdir] created dir: c:\apps\app3\platforms\android\cordovalib\ant-build         [mkdir] created dir: c:\apps\app3\platforms\android\cordovalib\ant-build\res         [mkdir] created dir: c:\apps\app3\platforms\android\cordovalib\ant-build\rsobj         [mkdir] created dir: c:\apps\app3\platforms\android\cordovalib\ant-build\rslibs         [mkdir] created dir: c:\apps\app3\platforms\android\cordovalib\ant-gen         [mkdir] created dir: c:\apps\app3\platforms\android\cordovalib\ant-build\classes         [mkdir] created dir: c:\apps\app3\platforms\android\cordovalib\ant-build\dexedlibs          [echo] ----------          [echo] resolving dependencies cordovalib...     [dependency] library dependencies:     [dependency] no libraries     [dependency]     [dependency] ------------------      -code-gen:     [mergemanifest] merging androidmanifest files one.     [mergemanifest] manifest merger disabled. using project manifest only.          [echo] handling aidl files...          [aidl] no aidl files 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 90 source files c:\apps\app3\platforms\android\cordovalib\ant-build\classes         [javac] note: input files use or override deprecated api.         [javac] note: recompile -xlint:deprecation details.          [echo] creating library output jar file...           [jar] building jar: c:\apps\app3\platforms\android\cordovalib\ant-build\classes.jar      -post-compile:      -obfuscate:      -dex:          [echo] library project: not convert bytecode...      -crunch:        [crunch] crunching png files in source dir: c:\apps\app3\platforms\android\cordovalib\res        [crunch] destination dir: c:\apps\app3\platforms\android\cordovalib\ant-build\res        [crunch] crunched 0 png files update cache      -package-resources:          [echo] library project: not package resources...      -package:          [echo] library project: not package apk...      -post-package:      -do-debug:          [echo] library project: not create apk...     [propertyfile] creating new property file: c:\apps\app3\platforms\android\cordovalib\ant-build\build.prop     [propertyfile] updating property file: c:\apps\app3\platforms\android\cordovalib\ant-build\build.prop     [propertyfile] updating property file: c:\apps\app3\platforms\android\cordovalib\ant-build\build.prop     [propertyfile] updating property file: c:\apps\app3\platforms\android\cordovalib\ant-build\build.prop      -post-build:      debug:      -code-gen:     [mergemanifest] merging androidmanifest files one.     [mergemanifest] manifest merger disabled. using project manifest only.          [echo] handling aidl files...          [aidl] no aidl files 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:          [echo] set jars path to: c:\apps\app3\platforms\android\cordovalib\ant-build\classes.jar      -compile:         [javac] compiling 3 source files c:\apps\app3\platforms\android\ant-build\classes      -post-compile:      -obfuscate:      -dex:           [dex] input: c:\apps\app3\platforms\android\ant-build\classes           [dex] input: c:\apps\app3\platforms\android\cordovalib\ant-build\classes.jar           [dex] pre-dexing c:\apps\app3\platforms\android\cordovalib\ant-build\classes.jar -> classes-b6d5849ba546b3720c0e46effd6702fc.jar            [dx] error occurred during initialization of vm            [dx] not reserve enough space object heap            [dx] not create java virtual machine.      build failed     f:\android\sdk-for-kepler\sdk\tools\ant\build.xml:892: following error occurred while executing line:     f:\android\sdk-for-kepler\sdk\tools\ant\build.xml:894: following error occurred while executing line:     f:\android\sdk-for-kepler\sdk\tools\ant\build.xml:906: following error occurred while executing line:     f:\android\sdk-for-kepler\sdk\tools\ant\build.xml:283: null returned: 1      total time: 4 seconds     error code 1 command: cmd args: /s,/c,ant,debug,-f,c:\apps\app3\platforms\android\build.xml,-dout.dir=ant-build,-dgen.absolute.dir=ant-gen     { [error: c:\apps\app3\platforms\android\cordova\build.bat: command failed exit code 2] code: 2 }        [error] c:\apps\app3\platforms\android\cordova\build.bat: command failed exit code 2  

after seeing log seems java heap memory issue.. see this question more help.. suggests use 64-bit jdk.

this link might you..


Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -