RubertdeMacBook-Pro:myApp Rubert$ ionic emulate android
Running command: /Users/Rubert/myApp/hooks/after_prepare/010_add_platform_class.js /Users/Rubert/myApp
add to body class: platform-android
Running command: /Users/Rubert/myApp/platforms/android/cordova/run --emulator
Buildfile: /Users/Rubert/myApp/platforms/android/build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 22.3.
[checkenv] Installed at /Users/Rubert/Android/adt-bundle-mac-x86_64-/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.
[echo] Resolving Build Target for CordovaApp...
[gettarget] Project Target: Android 4.4
[gettarget] API level:
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: /Users/Rubert/myApp/platforms/android/ant-build/rsObj
[mkdir] Created dir: /Users/Rubert/myApp/platforms/android/ant-build/rsLibs
[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.
[checkenv] Installed at /Users/Rubert/Android/adt-bundle-mac-x86_64-/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.
[echo] Resolving Build Target for CordovaApp...
[gettarget] Project Target: Android 4.4
[gettarget] API level:
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/rsObj
[mkdir] Created dir: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/rsLibs
[echo] ----------
[echo] Resolving Dependencies for CordovaApp...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
-code-gen:
[mergemanifest] Found Deleted Target File
[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] Found modified input file
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.
-pre-compile:
-compile:
[echo] Creating library output jar file...
-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 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] 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
[propertyfile] Updating property file: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/build.prop
-post-build:
debug:
-code-gen:
[mergemanifest] Found Deleted Target File
[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] Found new input file
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] No need to generate new BuildConfig.
-pre-compile:
[echo] Set jars path to: /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/classes.jar
-compile:
[javac] Compiling source files to /Users/Rubert/myApp/platforms/android/ant-build/classes
[javac] 警告: [options] 源值1.5已过时, 将在未来所有发行版中删除
[javac] 警告: [options] 目标值1.5已过时, 将在未来所有发行版中删除
[javac] 警告: [options] 要隐藏有关已过时选项的警告, 请使用 -Xlint:-options。
[javac] 个警告
-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] Using Pre-Dexed classes-79db15b8810b37c38c2cfb97f40b28c1.jar <- /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build/classes.jar
[dex] Found modified input file
[dex] Converting compiled files and external libraries into /Users/Rubert/myApp/platforms/android/ant-build/classes.dex...
[dx] Merged dex A ( defs/.8KiB) with dex B ( defs/.1KiB). Result is defs/.9KiB. Took .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] Crunched PNG files to update cache
-package-resources:
[aapt] Found modified input file
[aapt] Creating full resource package...
-package:
[apkbuilder] Found modified input file
[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] 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
[propertyfile] Updating property file: /Users/Rubert/myApp/platforms/android/ant-build/build.prop
-post-build:
[move] Moving file to /Users/Rubert/myApp/platforms/android/ant-build
[move] Moving file to /Users/Rubert/myApp/platforms/android/CordovaLib/ant-build
debug:
BUILD SUCCESSFUL
Total time: seconds
Built the following apk(s):
/Users/Rubert/myApp/platforms/android/ant-build/CordovaApp-debug.apk
WARNING : no emulator specified, defaulting to Phone
Waiting for emulator...
Booting up emulator (this may take a while)..............................BOOT COMPLETE
Installing app on emulator...
Using apk: /Users/Rubert/myApp/platforms/android/ant-build/CordovaApp-debug.apk
Launching application...
LAUNCH SUCCESS