ionic build android log

RubertdeMacBook-Pro:~ Rubert$ ionic build android
Current working directory is not a Cordova-based project.
RubertdeMacBook-Pro:~ Rubert$ cd myApp/
RubertdeMacBook-Pro:myApp Rubert$ ionic build 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/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-build

debug:

BUILD SUCCESSFUL
Total time: 25 seconds
Built the following apk(s):
    /Users/Rubert/myApp/platforms/android/ant-build/CordovaApp-debug.apk
时间: 2024-10-10 04:04:28

ionic build android log的相关文章

ionic emulate android log

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/

ionic build Android错误记录未解决

1.try itcordova -v cordova create testing cd testing cordova plugin add cordova-plugin-sim cordova platform add android cordova build android

ionic2踩坑之ionic build android报错

自己项目一直跑的好好好好的,build还是run都没问题,今天忽然一个小伙伴build一直报错.\ 错误如下: Error occurred during initialization of VMCould not reserve enough space for 2097152KB object heap 第一反应是java虚拟机内存不够,然后按网上的新建环境变量 变量名:_JAVA_OPTIONS 变量值:-Xmx512M 然并卵,问题并没有得到解决,最后在一个国外网站上找到了问题原因. 原

ionic build android 报错分析

【No.2 Ionic】Android打包

项目做完之后 接下来就是打包操作了,接下来直接说Android 打包操作 生成签名证书 keytool -genkey -alias vincentguo -keyalg RSA -validity 20000 -keystore vincentguo.keystore #说明: #    -genkey 产生密钥 #    -alias vincentguo 别名vincentguo #    -keyalg RSA 使用RSA算法对签名加密 #    -validity 20000 有效期限

Ionic buid android下的此工程不是一个android项目问题

今天编译Ionic项目的时候报如下错误,甚是费解,之前一直都是好的 首先去检查了,相关JavaHome的环境变量,确定是好的,java -version 命令没有问题. 经查阅网上的解决方法,思路大都是添加或者删除相关的开发平台,顺着这个思路去试试看,果然有效 具体步骤: 1. cd yourProjectFolder 2.ionic platform rm android. 此时会把platforms/android目录下的所有文件全部删掉,但是仅仅这样做还是不够的,我们还需要整体手动将pla

ionic开发android App

在win下配置ionic可以参考七月的这篇博客:http://www.cnblogs.com/shikelong/p/4480975.html. 依照七月的思路基本可以创建一个ionic项目了,下面我主要介绍一下怎样将打包好的apk签名. 开始之前 先了解两件事情: Keytool 是一个有效的安全钥匙和证书的管理工具.(具体用法可以参考此篇博文:http://blog.csdn.net/tony1130/article/details/5134318) Android 要求所有的程序必须有签名

ionic3打包出错ionic cordova build android(系列一):could not find an installed version of gradle either in android studio

1.运行ionic cordova build android 时报错:could not find an installed version of gradle either in android studio. 2.问题原因:cordova在6.4.0(cordova-android在6.1.2)之后,会要求安装Gradle,基于Gradle来编译.打包android. 3.解决办法: 1)去Gradle官网:https://gradle.org/install 2)下载Gradle:htt

使用ionic cordova build android --release --prod命令打包报错解决方法

使用ionic cordova build android --release --prod命令打包报有如下错误及解决方法 只要把以下内容添加到build-extras.gradle或(build***.gradle)即可 configurations.all { resolutionStrategy { force 'com.android.support:support-v4:27.1.0' } } 原文地址:https://www.cnblogs.com/sftp/p/8555884.ht