javascript - Phonegap build on Android keeps failing -
i working on phonegap app , wanted test on phone. android build keeps failing , can't figure out why. here log. help. i've tried building multiple times cant figure out wrong.
build date: 2015-07-23 11:52:12 +0000 ---------------------------------------------- buildfile: /project/build.xml -set-mode-check: -set-debug-files: -check-env: [checkenv] android sdk tools revision 24.3.0 -setup: [echo] project name: insize [gettype] project type: application -set-debug-mode: -debug-obfuscation-check: -pre-build: -build-setup: [getbuildtools] using latest build tools: 20.0.0 [echo] resolving build target insize... [gettarget] project target: android 5.0.1 [gettarget] api level: 21 [echo] ---------- [echo] creating output directories if needed... [mkdir] created dir: /project/bin [mkdir] created dir: /project/bin/res [mkdir] created dir: /project/bin/rsobj [mkdir] created dir: /project/bin/rslibs [mkdir] created dir: /project/gen [mkdir] created dir: /project/bin/classes [mkdir] created dir: /project/bin/dexedlibs [echo] ---------- [echo] resolving dependencies insize... [dependency] library dependencies: [dependency] [dependency] ------------------ [dependency] ordered libraries: [dependency] [dependency] ------------------ [echo] ---------- [echo] building libraries 'debug'... nodeps: -set-mode-check: -set-debug-files: -check-env: [checkenv] android sdk tools revision 24.3.0 -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: 20.0.0 [echo] resolving build target cordovalib... [gettarget] project target: android 5.0.1 [gettarget] api level: 21 [echo] ---------- [echo] creating output directories if needed... [mkdir] created dir: /project/cordovalib/res [mkdir] created dir: /project/cordovalib/libs [mkdir] created dir: /project/cordovalib/bin [mkdir] created dir: /project/cordovalib/bin/res [mkdir] created dir: /project/cordovalib/bin/rsobj [mkdir] created dir: /project/cordovalib/bin/rslibs [mkdir] created dir: /project/cordovalib/gen [mkdir] created dir: /project/cordovalib/bin/classes [mkdir] created dir: /project/cordovalib/bin/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 98 source files /project/cordovalib/bin/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: /project/cordovalib/bin/classes.jar -post-compile: -obfuscate: -dex: [echo] library project: not convert bytecode... -crunch: [crunch] crunching png files in source dir: /project/cordovalib/res [crunch] destination dir: /project/cordovalib/bin/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: /project/cordovalib/bin/build.prop [propertyfile] updating property file: /project/cordovalib/bin/build.prop [propertyfile] updating property file: /project/cordovalib/bin/build.prop [propertyfile] updating property file: /project/cordovalib/bin/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: -compile: [javac] compiling 43 source files /project/bin/classes [javac] note: input files use or override deprecated api. [javac] note: recompile -xlint:deprecation details. [javac] note: input files use unchecked or unsafe operations. [javac] note: recompile -xlint:unchecked details. -post-compile: -obfuscate: -dex: [dex] input: /project/bin/classes [dex] input: /project/cordovalib/bin/classes.jar [dex] pre-dexing /project/cordovalib/bin/classes.jar -> classes-c6b3a3aefa7b3c48b86c5ea60cddcdeb.jar [dex] converting compiled files , external libraries /project/bin/classes.dex... [dx] merged dex (131 defs/214.5kib) dex b (223 defs/326.3kib). result 354 defs/660.6kib. took 0.4s -crunch: [crunch] crunching png files in source dir: /project/res [crunch] destination dir: /project/bin/res [crunch] processing image cache: /project/res/drawable-hdpi/ic_action_next_item.png => /project/bin/res/drawable-hdpi/ic_action_next_item.png [crunch] (processed image cache entry /project/bin/res/drawable-hdpi/ic_action_next_item.png: 0% size of source) [crunch] processing image cache: /project/res/drawable-hdpi/ic_action_previous_item.png => /project/bin/res/drawable-hdpi/ic_action_previous_item.png [crunch] (processed image cache entry /project/bin/res/drawable-hdpi/ic_action_previous_item.png: 0% size of source) [crunch] processing image cache: /project/res/drawable-hdpi/ic_action_remove.png => /project/bin/res/drawable-hdpi/ic_action_remove.png [crunch] (processed image cache entry /project/bin/res/drawable-hdpi/ic_action_remove.png: 0% size of source) [crunch] processing image cache: /project/res/drawable-hdpi/icon.png => /project/bin/res/drawable-hdpi/icon.png [crunch] (processed image cache entry /project/bin/res/drawable-hdpi/icon.png: 52% size of source) [crunch] processing image cache: /project/res/drawable-ldpi/icon.png => /project/bin/res/drawable-ldpi/icon.png [crunch] (processed image cache entry /project/bin/res/drawable-ldpi/icon.png: 0% size of source) [crunch] processing image cache: /project/res/drawable-mdpi/ic_action_next_item.png => /project/bin/res/drawable-mdpi/ic_action_next_item.png [crunch] (processed image cache entry /project/bin/res/drawable-mdpi/ic_action_next_item.png: 0% size of source) [crunch] processing image cache: /project/res/drawable-mdpi/ic_action_previous_item.png => /project/bin/res/drawable-mdpi/ic_action_previous_item.png [crunch] (processed image cache entry /project/bin/res/drawable-mdpi/ic_action_previous_item.png: 0% size of source) [crunch] processing image cache: /project/res/drawable-mdpi/ic_action_remove.png => /project/bin/res/drawable-mdpi/ic_action_remove.png [crunch] (processed image cache entry /project/bin/res/drawable-mdpi/ic_action_remove.png: 0% size of source) [crunch] processing image cache: /project/res/drawable-mdpi/icon.png => /project/bin/res/drawable-mdpi/icon.png [crunch] (processed image cache entry /project/bin/res/drawable-mdpi/icon.png: 0% size of source) [crunch] processing image cache: /project/res/drawable-port-hdpi/splash.png => /project/bin/res/drawable-port-hdpi/splash.png [crunch] (processed image cache entry /project/bin/res/drawable-port-hdpi/splash.png: 105% size of source) [crunch] processing image cache: /project/res/drawable-port-ldpi/splash.png => /project/bin/res/drawable-port-ldpi/splash.png [crunch] (processed image cache entry /project/bin/res/drawable-port-ldpi/splash.png: 82% size of source) [crunch] processing image cache: /project/res/drawable-port-mdpi/splash.png => /project/bin/res/drawable-port-mdpi/splash.png [crunch] (processed image cache entry /project/bin/res/drawable-port-mdpi/splash.png: 97% size of source) [crunch] processing image cache: /project/res/drawable-port-xhdpi/splash.png => /project/bin/res/drawable-port-xhdpi/splash.png [crunch] (processed image cache entry /project/bin/res/drawable-port-xhdpi/splash.png: 109% size of source) [crunch] processing image cache: /project/res/drawable-xhdpi/ic_action_next_item.png => /project/bin/res/drawable-xhdpi/ic_action_next_item.png [crunch] (processed image cache entry /project/bin/res/drawable-xhdpi/ic_action_next_item.png: 0% size of source) [crunch] processing image cache: /project/res/drawable-xhdpi/ic_action_previous_item.png => /project/bin/res/drawable-xhdpi/ic_action_previous_item.png [crunch] (processed image cache entry /project/bin/res/drawable-xhdpi/ic_action_previous_item.png: 0% size of source) [crunch] processing image cache: /project/res/drawable-xhdpi/ic_action_remove.png => /project/bin/res/drawable-xhdpi/ic_action_remove.png [crunch] (processed image cache entry /project/bin/res/drawable-xhdpi/ic_action_remove.png: 0% size of source) [crunch] processing image cache: /project/res/drawable-xhdpi/icon.png => /project/bin/res/drawable-xhdpi/icon.png [crunch] (processed image cache entry /project/bin/res/drawable-xhdpi/icon.png: 71% size of source) [crunch] processing image cache: /project/res/drawable-xxhdpi/ic_action_next_item.png => /project/bin/res/drawable-xxhdpi/ic_action_next_item.png [crunch] (processed image cache entry /project/bin/res/drawable-xxhdpi/ic_action_next_item.png: 0% size of source) [crunch] processing image cache: /project/res/drawable-xxhdpi/ic_action_previous_item.png => /project/bin/res/drawable-xxhdpi/ic_action_previous_item.png [crunch] (processed image cache entry /project/bin/res/drawable-xxhdpi/ic_action_previous_item.png: 0% size of source) [crunch] processing image cache: /project/res/drawable-xxhdpi/ic_action_remove.png => /project/bin/res/drawable-xxhdpi/ic_action_remove.png [crunch] (processed image cache entry /project/bin/res/drawable-xxhdpi/ic_action_remove.png: 0% size of source) [crunch] processing image cache: /project/res/drawable/icon.png => /project/bin/res/drawable/icon.png [crunch] (processed image cache entry /project/bin/res/drawable/icon.png: 53% size of source) [crunch] crunched 21 png files update cache -package-resources: [aapt] creating full resource package... [aapt] (skipping file '.project' due android_aapt_ignore pattern '.*') [aapt] (skipping file '.gitignore' due android_aapt_ignore pattern '.*') [aapt] (skipping dir '.gradle' due android_aapt_ignore pattern '.*') [aapt] (skipping file '.project' due android_aapt_ignore pattern '.*') [aapt] (skipping file '.jshintrc' due android_aapt_ignore pattern '.*') [aapt] (skipping file '.npmignore' due android_aapt_ignore pattern '.*') [aapt] (skipping file '.travis.yml' due android_aapt_ignore pattern '.*') [aapt] (skipping file '.documentup.json' due android_aapt_ignore pattern '.*') [aapt] warning: androidmanifest.xml defines debuggable (in http://schemas.android.com/apk/res/android); using existing value in manifest. [aapt] unable add '/project/assets/www/platforms/android/assets/www/components/bower_components/web-animations-js/web-animations.min.js.gz': file in archive (try '-u'?) [aapt] error: unable process assets while packaging '/project/bin/insize.ap_' [aapt] error: packaging of '/project/bin/insize.ap_' failed build failed /home/ec2-user/android-sdk/tools/ant/build.xml:928: following error occurred while executing line: /home/ec2-user/android-sdk/tools/ant/build.xml:946: null returned: 1 total time: 22 seconds
Comments
Post a Comment