首页 > 代码库 > ionic build android log

ionic build android log

RubertdeMacBook-Pro:~ Rubert$ ionic build androidCurrent working directory is not a Cordova-based project.RubertdeMacBook-Pro:~ Rubert$ cd myApp/RubertdeMacBook-Pro:myApp Rubert$ ionic build androidRunning command: /Users/Rubert/myApp/hooks/after_prepare/010_add_platform_class.js /Users/Rubert/myAppadd to body class: platform-androidRunning command: /Users/Rubert/myApp/platforms/android/cordova/build Buildfile: /Users/Rubert/myApp/platforms/android/build.xml-set-mode-check:-set-debug-files:-check-env: [checkenv] Android SDK Tools Revision 22.3.0 [checkenv] Installed at /Users/Rubert/Android/adt-bundle-mac-x86_64-20131030/sdk-setup:     [echo] Project Name: CordovaApp  [gettype] Project Type: Application-set-debug-mode:-debug-obfuscation-check:-pre-build:-build-setup:[getbuildtools] Using latest Build Tools: 19.0.0     [echo] Resolving Build Target for CordovaApp...[gettarget] Project Target:   Android 4.4[gettarget] API level:        19     [echo] ----------     [echo] Creating output directories if needed...    [mkdir] Created dir: /Users/Rubert/myApp/platforms/android/ant-build    [mkdir] Created dir: /Users/Rubert/myApp/platforms/android/ant-build/res    [mkdir] Created dir: /Users/Rubert/myApp/platforms/android/ant-build/rsObj    [mkdir] Created dir: /Users/Rubert/myApp/platforms/android/ant-build/rsLibs    [mkdir] Created dir: /Users/Rubert/myApp/platforms/android/ant-gen    [mkdir] Created dir: /Users/Rubert/myApp/platforms/android/ant-build/classes    [mkdir] Created dir: /Users/Rubert/myApp/platforms/android/ant-build/dexedLibs     [echo] ----------     [echo] Resolving Dependencies for CordovaApp...[dependency] Library dependencies:[dependency] [dependency] ------------------[dependency] Ordered libraries:[dependency] [dependency] ------------------     [echo] ----------     [echo] Building Libraries with debug...nodeps:-set-mode-check:-set-debug-files:-check-env: [checkenv] Android SDK Tools Revision 22.3.0 [checkenv] Installed at /Users/Rubert/Android/adt-bundle-mac-x86_64-20131030/sdk-setup:     [echo] Project Name: CordovaApp  [gettype] Project Type: Android Library-set-debug-mode:-debug-obfuscation-check:-pre-build:-build-setup:[getbuildtools] Using latest Build Tools: 19.0.0     [echo] Resolving Build Target for CordovaApp...[gettarget] Project Target:   Android 4.4[gettarget] API level:        19     [echo] ----------     [echo] Creating output directories if needed...    [mkdir] Created dir: /Users/Rubert/myApp/platforms/android/CordovaLib/res    [mkdir] Created dir: /Users/Rubert/myApp/platforms/android/CordovaLib/libs    [mkdir] Created dir: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build    [mkdir] Created dir: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/res    [mkdir] Created dir: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/rsObj    [mkdir] Created dir: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/rsLibs    [mkdir] Created dir: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-gen    [mkdir] Created dir: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/classes    [mkdir] Created dir: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/dexedLibs     [echo] ----------     [echo] Resolving Dependencies for CordovaApp...[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 93 source files to /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/classes    [javac] 警告: [options] 源值1.5已过时, 将在未来所有发行版中删除    [javac] 警告: [options] 目标值1.5已过时, 将在未来所有发行版中删除    [javac] 警告: [options] 要隐藏有关已过时选项的警告, 请使用 -Xlint:-options。    [javac] 注: 某些输入文件使用或覆盖了已过时的 API。    [javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。    [javac] 3 个警告     [echo] Creating library output jar file...      [jar] Building jar: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/classes.jar-post-compile:-obfuscate:-dex:     [echo] Library project: do not convert bytecode...-crunch:   [crunch] Crunching PNG Files in source dir: /Users/Rubert/myApp/platforms/android/CordovaLib/res   [crunch] To destination dir: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/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: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/build.prop[propertyfile] Updating property file: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/build.prop[propertyfile] Updating property file: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/build.prop[propertyfile] Updating property file: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/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:     [echo] Set jars path to: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/classes.jar-compile:    [javac] Compiling 5 source files to /Users/Rubert/myApp/platforms/android/ant-build/classes    [javac] 警告: [options] 源值1.5已过时, 将在未来所有发行版中删除    [javac] 警告: [options] 目标值1.5已过时, 将在未来所有发行版中删除    [javac] 警告: [options] 要隐藏有关已过时选项的警告, 请使用 -Xlint:-options。    [javac] 注: /Users/Rubert/myApp/platforms/android/src/com/ionic/keyboard/IonicKeyboard.java使用或覆盖了已过时的 API。    [javac] 注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。    [javac] 3 个警告-post-compile:-obfuscate:-dex:      [dex] input: /Users/Rubert/myApp/platforms/android/ant-build/classes      [dex] input: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/classes.jar      [dex] Pre-Dexing /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/classes.jar -> classes-79db15b8810b37c38c2cfb97f40b28c1.jar      [dex] Converting compiled files and external libraries into /Users/Rubert/myApp/platforms/android/ant-build/classes.dex...       [dx] Merged dex A (12 defs/8.8KiB) with dex B (209 defs/317.1KiB). Result is 221 defs/395.9KiB. Took 0.1s-crunch:   [crunch] Crunching PNG Files in source dir: /Users/Rubert/myApp/platforms/android/res   [crunch] To destination dir: /Users/Rubert/myApp/platforms/android/ant-build/res   [crunch] Processing image to cache: /Users/Rubert/myApp/platforms/android/res/drawable-hdpi/icon.png => /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-hdpi/icon.png   [crunch]   (processed image to cache entry /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-hdpi/icon.png: 67% size of source)   [crunch] Processing image to cache: /Users/Rubert/myApp/platforms/android/res/drawable-land-hdpi/screen.png => /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-land-hdpi/screen.png   [crunch]   (processed image to cache entry /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-land-hdpi/screen.png: 97% size of source)   [crunch] Processing image to cache: /Users/Rubert/myApp/platforms/android/res/drawable-land-ldpi/screen.png => /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-land-ldpi/screen.png   [crunch]   (processed image to cache entry /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-land-ldpi/screen.png: 96% size of source)   [crunch] Processing image to cache: /Users/Rubert/myApp/platforms/android/res/drawable-land-mdpi/screen.png => /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-land-mdpi/screen.png   [crunch]   (processed image to cache entry /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-land-mdpi/screen.png: 97% size of source)   [crunch] Processing image to cache: /Users/Rubert/myApp/platforms/android/res/drawable-land-xhdpi/screen.png => /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-land-xhdpi/screen.png   [crunch]   (processed image to cache entry /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-land-xhdpi/screen.png: 99% size of source)   [crunch] Processing image to cache: /Users/Rubert/myApp/platforms/android/res/drawable-ldpi/icon.png => /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-ldpi/icon.png   [crunch]   (processed image to cache entry /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-ldpi/icon.png: 0% size of source)   [crunch] Processing image to cache: /Users/Rubert/myApp/platforms/android/res/drawable-mdpi/icon.png => /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-mdpi/icon.png   [crunch]   (processed image to cache entry /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-mdpi/icon.png: 0% size of source)   [crunch] Processing image to cache: /Users/Rubert/myApp/platforms/android/res/drawable-port-hdpi/screen.png => /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-port-hdpi/screen.png   [crunch]   (processed image to cache entry /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-port-hdpi/screen.png: 97% size of source)   [crunch] Processing image to cache: /Users/Rubert/myApp/platforms/android/res/drawable-port-ldpi/screen.png => /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-port-ldpi/screen.png   [crunch]   (processed image to cache entry /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-port-ldpi/screen.png: 97% size of source)   [crunch] Processing image to cache: /Users/Rubert/myApp/platforms/android/res/drawable-port-mdpi/screen.png => /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-port-mdpi/screen.png   [crunch]   (processed image to cache entry /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-port-mdpi/screen.png: 99% size of source)   [crunch] Processing image to cache: /Users/Rubert/myApp/platforms/android/res/drawable-port-xhdpi/screen.png => /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-port-xhdpi/screen.png   [crunch]   (processed image to cache entry /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-port-xhdpi/screen.png: 99% size of source)   [crunch] Processing image to cache: /Users/Rubert/myApp/platforms/android/res/drawable-xhdpi/icon.png => /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-xhdpi/icon.png   [crunch]   (processed image to cache entry /Users/Rubert/myApp/platforms/android/ant-build/res/drawable-xhdpi/icon.png: 53% size of source)   [crunch] Processing image to cache: /Users/Rubert/myApp/platforms/android/res/drawable/icon.png => /Users/Rubert/myApp/platforms/android/ant-build/res/drawable/icon.png   [crunch]   (processed image to cache entry /Users/Rubert/myApp/platforms/android/ant-build/res/drawable/icon.png: 53% size of source)   [crunch] Crunched 13 PNG files to update cache-package-resources:     [aapt] Creating full resource package...-package:[apkbuilder] Current build type is different than previous build: forced apkbuilder run.[apkbuilder] Creating CordovaApp-debug-unaligned.apk and signing it with a debug key...-post-package:-do-debug: [zipalign] Running zip align on final apk...     [echo] Debug Package: /Users/Rubert/myApp/platforms/android/ant-build/CordovaApp-debug.apk[propertyfile] Creating new property file: /Users/Rubert/myApp/platforms/android/ant-build/build.prop[propertyfile] Updating property file: /Users/Rubert/myApp/platforms/android/ant-build/build.prop[propertyfile] Updating property file: /Users/Rubert/myApp/platforms/android/ant-build/build.prop[propertyfile] Updating property file: /Users/Rubert/myApp/platforms/android/ant-build/build.prop-post-build:     [move] Moving 1 file to /Users/Rubert/myApp/platforms/android/ant-build     [move] Moving 1 file to /Users/Rubert/myApp/platforms/android/CordovaLib/ant-builddebug:BUILD SUCCESSFULTotal time: 25 secondsBuilt the following apk(s):    /Users/Rubert/myApp/platforms/android/ant-build/CordovaApp-debug.apk

 

ionic build android log