[
https://issues.apache.org/jira/browse/CB-9112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
James Wade updated CB-9112:
---------------------------
Description:
I am trying to get the basic Cordova v5.0 Android v4.0 project (note: using
Cordova v4 builds successfully) to build on Mac OS X Yosemite, but keep getting
this error. I have uninstalled and reinstalled the Android SDK, Cordova, and
even Gradle (but I don't think I need it). I've checked that my Path variable
contains the correct paths to <ANDROID_SDK>/tools and
<ANDROID_SDK>/platform_tools. But when I do the 'cordova build' or 'cordova
build android' using java v1.6 (java 1.7 and 1.8 below), I always get the same
error:
> Could not create an instance of type
> org.gradle.invocation.DefaultGradle_Decorated.
Further down it says:
> You may not have the required environment or OS to build this project
What am I missing?
Here's the full text of what I'm doing:
my_acct$cordova create build_test com.example.build_test "BuildTest"
Creating a new cordova project.
my_acct$cd build_test
my_acct$cordova platform add android
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: com.example.build_test
Name: BuildTest
Activity: MainActivity
Android target: android-22
Copying template files...
Android project created with [email protected]
Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to
the project
Fetching plugin "cordova-plugin-whitelist@1" via npm
npm http GET https://registry.npmjs.org/cordova-plugin-whitelist
npm http GET https://registry.npmjs.org/cordova-plugin-whitelist
npm http 304 https://registry.npmjs.org/cordova-plugin-whitelist
Installing "cordova-plugin-whitelist" for android
my_acct$cordova build
Running command:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build
ANDROID_HOME=/Users/my_acct/Documents/Development/android-sdk-macosx/sdk
JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Running:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
cdvBuildDebug -b
/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle
-Dorg.gradle.daemon=true
FAILURE: Build failed with an exception.
* What went wrong:
Could not create an instance of type
org.gradle.invocation.DefaultGradle_Decorated.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output.
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
with args:
cdvBuildDebug,-b,/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
Command failed with exit code 8
You may not have the required environment or OS to build this project
Error:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
Command failed with exit code 8
at ChildProcess.whenDone
(/Users/my_acct/.node/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:766:16)
at Process.ChildProcess._handle.onexit (child_process.js:833:5)
If I change to use java 1.7 or 1.8, the error changes to:
> A problem occurred configuring root project 'android'.
> > Could not resolve all dependencies for configuration ':classpath'.
> > Could not resolve com.android.tools.build:gradle:1.0.0+.
> Required by:
> :android:unspecified
> >
> org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
Here's the full results for using java 1.7 or 1.8:
my_acct$cordova build
Running command:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build
ANDROID_HOME=/Users/my_acct/Documents/Development/android-sdk-macosx/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
Running:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
cdvBuildDebug -b
/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle
-Dorg.gradle.daemon=true
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:1.0.0+.
Required by:
:android:unspecified
>
org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output.
BUILD FAILED
Total time: 4.859 secs
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
with args:
cdvBuildDebug,-b,/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
Command failed with exit code 8
You may not have the required environment or OS to build this project
Error:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
Command failed with exit code 8
at ChildProcess.whenDone
(/Users/my_acct/.node/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:766:16)
at Process.ChildProcess._handle.onexit (child_process.js:833:5)
============================================================================================
Here's my output for Cordova v4:
my_acct$cordova -v
4.0.0
my_acct$cd ..
my_acct$cordova create build_test gov.fema.build-test "BuildTest"
Creating a new cordova project with name "BuildTest" and id
"gov.fema.build-test" at location
"/Users/my_acct/Documents/Development/work/build_test"
Downloading cordova library for www...
Download complete
my_acct$cd build_test
my_acct$ls
config.xml hooks platforms plugins www
my_acct$cordova platform add android
npm http GET https://registry.npmjs.org/cordova-android/3.6.4
npm http 200 https://registry.npmjs.org/cordova-android/3.6.4
npm http GET
https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.4.tgz
npm http 200
https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.4.tgz
Creating android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: gov.fema.build_test
Name: BuildTest
Android target: android-19
Copying template files...
Project successfully created.
my_acct$cordova build
Running command:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build
Buildfile:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.3.0
[checkenv] Installed at
/Users/my_acct/Documents/Development/android-sdk-macosx/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: 22.0.1
[echo] Resolving Build Target for CordovaApp...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/rsObj
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/rsLibs
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-gen
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/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 24.3.0
[checkenv] Installed at
/Users/my_acct/Documents/Development/android-sdk-macosx/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: 22.0.1
[echo] Resolving Build Target for CordovaApp...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/res
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/libs
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/res
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/rsObj
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/rsLibs
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-gen
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use
-Xlint:-options.
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 3 warnings
[echo] Creating library output jar file...
[jar] Building jar:
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/res
[crunch] To destination dir:
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
-compile:
[javac] Compiling 3 source files to
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use
-Xlint:-options.
[javac] 3 warnings
-post-compile:
-obfuscate:
-dex:
[dex] input:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
[dex] input:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
[dex] Pre-Dexing
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
-> classes-40f58b719036a91718ee0d06678bd472.jar
[dex] Converting compiled files and external libraries into
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes.dex...
[dx] Merged dex A (7 defs/2.2KiB) with dex B (209 defs/316.7KiB). Result
is 216 defs/388.2KiB. Took 0.1s
-crunch:
[crunch] Crunching PNG Files in source dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res
[crunch] To destination dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-hdpi/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-hdpi/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-hdpi/icon.png:
67% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-hdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-hdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-hdpi/screen.png:
97% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-ldpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-ldpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-ldpi/screen.png:
96% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-mdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-mdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-mdpi/screen.png:
97% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-xhdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-xhdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-xhdpi/screen.png:
99% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-ldpi/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-ldpi/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-ldpi/icon.png:
0% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-mdpi/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-mdpi/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-mdpi/icon.png:
0% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-hdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-hdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-hdpi/screen.png:
97% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-ldpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-ldpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-ldpi/screen.png:
97% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-mdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-mdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-mdpi/screen.png:
99% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-xhdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-xhdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-xhdpi/screen.png:
99% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-xhdpi/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-xhdpi/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-xhdpi/icon.png:
53% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/CordovaApp-debug.apk
[propertyfile] Creating new property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
-post-build:
[move] Moving 1 file to
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build
[move] Moving 1 file to
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build
debug:
BUILD SUCCESSFUL
Total time: 22 seconds
Built the following apk(s):
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/CordovaApp-debug.apkmy_acct$cordova
-v
4.0.0
my_acct$cd ..
my_acct$cordova create build_test gov.fema.build-test "BuildTest"
Creating a new cordova project with name "BuildTest" and id
"gov.fema.build-test" at location
"/Users/my_acct/Documents/Development/work/build_test"
Downloading cordova library for www...
Download complete
my_acct$cd build_test
my_acct$ls
config.xml hooks platforms plugins www
my_acct$cordova platform add android
npm http GET https://registry.npmjs.org/cordova-android/3.6.4
npm http 200 https://registry.npmjs.org/cordova-android/3.6.4
npm http GET
https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.4.tgz
npm http 200
https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.4.tgz
Creating android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: gov.fema.build_test
Name: BuildTest
Android target: android-19
Copying template files...
Project successfully created.
my_acct$cordova build
Running command:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build
Buildfile:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.3.0
[checkenv] Installed at
/Users/my_acct/Documents/Development/android-sdk-macosx/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: 22.0.1
[echo] Resolving Build Target for CordovaApp...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/rsObj
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/rsLibs
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-gen
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/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 24.3.0
[checkenv] Installed at
/Users/my_acct/Documents/Development/android-sdk-macosx/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: 22.0.1
[echo] Resolving Build Target for CordovaApp...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/res
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/libs
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/res
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/rsObj
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/rsLibs
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-gen
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use
-Xlint:-options.
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 3 warnings
[echo] Creating library output jar file...
[jar] Building jar:
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/res
[crunch] To destination dir:
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
-compile:
[javac] Compiling 3 source files to
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use
-Xlint:-options.
[javac] 3 warnings
-post-compile:
-obfuscate:
-dex:
[dex] input:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
[dex] input:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
[dex] Pre-Dexing
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
-> classes-40f58b719036a91718ee0d06678bd472.jar
[dex] Converting compiled files and external libraries into
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes.dex...
[dx] Merged dex A (7 defs/2.2KiB) with dex B (209 defs/316.7KiB). Result
is 216 defs/388.2KiB. Took 0.1s
-crunch:
[crunch] Crunching PNG Files in source dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res
[crunch] To destination dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-hdpi/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-hdpi/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-hdpi/icon.png:
67% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-hdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-hdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-hdpi/screen.png:
97% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-ldpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-ldpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-ldpi/screen.png:
96% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-mdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-mdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-mdpi/screen.png:
97% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-xhdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-xhdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-xhdpi/screen.png:
99% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-ldpi/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-ldpi/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-ldpi/icon.png:
0% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-mdpi/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-mdpi/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-mdpi/icon.png:
0% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-hdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-hdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-hdpi/screen.png:
97% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-ldpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-ldpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-ldpi/screen.png:
97% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-mdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-mdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-mdpi/screen.png:
99% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-xhdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-xhdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-xhdpi/screen.png:
99% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-xhdpi/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-xhdpi/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-xhdpi/icon.png:
53% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/CordovaApp-debug.apk
[propertyfile] Creating new property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
-post-build:
[move] Moving 1 file to
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build
[move] Moving 1 file to
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build
debug:
BUILD SUCCESSFUL
Total time: 22 seconds
Built the following apk(s):
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/CordovaApp-debug.apk
was:
I am trying to get the basic Cordova v5.0 Android v4.0 project (note: using
Cordova v4 builds successfully) to build on Mac OS X Yosemite, but keep getting
this error. I have uninstalled and reinstalled the Android SDK, Cordova, and
even Gradle (but I don't think I need it). I've checked that my Path variable
contains the correct paths to <ANDROID_SDK>/tools and
<ANDROID_SDK>/platform_tools. But when I do the 'cordova build' or 'cordova
build android' using java v1.6 (java 1.7 and 1.8 below), I always get the same
error:
> Could not create an instance of type
> org.gradle.invocation.DefaultGradle_Decorated.
Further down it says:
> You may not have the required environment or OS to build this project
What am I missing?
Here's the full text of what I'm doing:
my_acct$cordova create build_test com.example.build_test "BuildTest"
Creating a new cordova project.
my_acct$cd build_test
my_acct$cordova platform add android
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: com.example.build_test
Name: BuildTest
Activity: MainActivity
Android target: android-22
Copying template files...
Android project created with [email protected]
Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to
the project
Fetching plugin "cordova-plugin-whitelist@1" via npm
npm http GET https://registry.npmjs.org/cordova-plugin-whitelist
npm http GET https://registry.npmjs.org/cordova-plugin-whitelist
npm http 304 https://registry.npmjs.org/cordova-plugin-whitelist
Installing "cordova-plugin-whitelist" for android
my_acct$cordova build
Running command:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build
ANDROID_HOME=/Users/my_acct/Documents/Development/android-sdk-macosx/sdk
JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Running:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
cdvBuildDebug -b
/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle
-Dorg.gradle.daemon=true
FAILURE: Build failed with an exception.
* What went wrong:
Could not create an instance of type
org.gradle.invocation.DefaultGradle_Decorated.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output.
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
with args:
cdvBuildDebug,-b,/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
Command failed with exit code 8
You may not have the required environment or OS to build this project
Error:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
Command failed with exit code 8
at ChildProcess.whenDone
(/Users/my_acct/.node/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:766:16)
at Process.ChildProcess._handle.onexit (child_process.js:833:5)
If I change to use java 1.7 or 1.8, the error changes to:
> A problem occurred configuring root project 'android'.
> > Could not resolve all dependencies for configuration ':classpath'.
> > Could not resolve com.android.tools.build:gradle:1.0.0+.
> Required by:
> :android:unspecified
> >
> org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
Here's the full results for using java 1.7 or 1.8:
my_acct$cordova build
Running command:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build
ANDROID_HOME=/Users/my_acct/Documents/Development/android-sdk-macosx/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
Running:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
cdvBuildDebug -b
/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle
-Dorg.gradle.daemon=true
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not resolve com.android.tools.build:gradle:1.0.0+.
Required by:
:android:unspecified
>
org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or
--debug option to get more log output.
BUILD FAILED
Total time: 4.859 secs
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/node_modules/q/q.js:126
throw e;
^
Error code 1 for command:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
with args:
cdvBuildDebug,-b,/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
Command failed with exit code 8
You may not have the required environment or OS to build this project
Error:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
Command failed with exit code 8
at ChildProcess.whenDone
(/Users/my_acct/.node/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:766:16)
at Process.ChildProcess._handle.onexit (child_process.js:833:5)
Here's my output for Cordova v4:
my_acct$cordova -v
4.0.0
my_acct$cd ..
my_acct$cordova create build_test gov.fema.build-test "BuildTest"
Creating a new cordova project with name "BuildTest" and id
"gov.fema.build-test" at location
"/Users/my_acct/Documents/Development/work/build_test"
Downloading cordova library for www...
Download complete
my_acct$cd build_test
my_acct$ls
config.xml hooks platforms plugins www
my_acct$cordova platform add android
npm http GET https://registry.npmjs.org/cordova-android/3.6.4
npm http 200 https://registry.npmjs.org/cordova-android/3.6.4
npm http GET
https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.4.tgz
npm http 200
https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.4.tgz
Creating android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: gov.fema.build_test
Name: BuildTest
Android target: android-19
Copying template files...
Project successfully created.
my_acct$cordova build
Running command:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build
Buildfile:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.3.0
[checkenv] Installed at
/Users/my_acct/Documents/Development/android-sdk-macosx/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: 22.0.1
[echo] Resolving Build Target for CordovaApp...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/rsObj
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/rsLibs
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-gen
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/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 24.3.0
[checkenv] Installed at
/Users/my_acct/Documents/Development/android-sdk-macosx/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: 22.0.1
[echo] Resolving Build Target for CordovaApp...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/res
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/libs
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/res
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/rsObj
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/rsLibs
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-gen
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use
-Xlint:-options.
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 3 warnings
[echo] Creating library output jar file...
[jar] Building jar:
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/res
[crunch] To destination dir:
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
-compile:
[javac] Compiling 3 source files to
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use
-Xlint:-options.
[javac] 3 warnings
-post-compile:
-obfuscate:
-dex:
[dex] input:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
[dex] input:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
[dex] Pre-Dexing
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
-> classes-40f58b719036a91718ee0d06678bd472.jar
[dex] Converting compiled files and external libraries into
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes.dex...
[dx] Merged dex A (7 defs/2.2KiB) with dex B (209 defs/316.7KiB). Result
is 216 defs/388.2KiB. Took 0.1s
-crunch:
[crunch] Crunching PNG Files in source dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res
[crunch] To destination dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-hdpi/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-hdpi/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-hdpi/icon.png:
67% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-hdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-hdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-hdpi/screen.png:
97% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-ldpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-ldpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-ldpi/screen.png:
96% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-mdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-mdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-mdpi/screen.png:
97% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-xhdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-xhdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-xhdpi/screen.png:
99% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-ldpi/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-ldpi/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-ldpi/icon.png:
0% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-mdpi/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-mdpi/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-mdpi/icon.png:
0% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-hdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-hdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-hdpi/screen.png:
97% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-ldpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-ldpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-ldpi/screen.png:
97% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-mdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-mdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-mdpi/screen.png:
99% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-xhdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-xhdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-xhdpi/screen.png:
99% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-xhdpi/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-xhdpi/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-xhdpi/icon.png:
53% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/CordovaApp-debug.apk
[propertyfile] Creating new property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
-post-build:
[move] Moving 1 file to
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build
[move] Moving 1 file to
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build
debug:
BUILD SUCCESSFUL
Total time: 22 seconds
Built the following apk(s):
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/CordovaApp-debug.apkmy_acct$cordova
-v
4.0.0
my_acct$cd ..
my_acct$cordova create build_test gov.fema.build-test "BuildTest"
Creating a new cordova project with name "BuildTest" and id
"gov.fema.build-test" at location
"/Users/my_acct/Documents/Development/work/build_test"
Downloading cordova library for www...
Download complete
my_acct$cd build_test
my_acct$ls
config.xml hooks platforms plugins www
my_acct$cordova platform add android
npm http GET https://registry.npmjs.org/cordova-android/3.6.4
npm http 200 https://registry.npmjs.org/cordova-android/3.6.4
npm http GET
https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.4.tgz
npm http 200
https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.4.tgz
Creating android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: gov.fema.build_test
Name: BuildTest
Android target: android-19
Copying template files...
Project successfully created.
my_acct$cordova build
Running command:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build
Buildfile:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.3.0
[checkenv] Installed at
/Users/my_acct/Documents/Development/android-sdk-macosx/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: 22.0.1
[echo] Resolving Build Target for CordovaApp...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/rsObj
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/rsLibs
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-gen
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/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 24.3.0
[checkenv] Installed at
/Users/my_acct/Documents/Development/android-sdk-macosx/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: 22.0.1
[echo] Resolving Build Target for CordovaApp...
[gettarget] Project Target: Android 4.4.2
[gettarget] API level: 19
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/res
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/libs
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/res
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/rsObj
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/rsLibs
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-gen
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes
[mkdir] Created dir:
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use
-Xlint:-options.
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 3 warnings
[echo] Creating library output jar file...
[jar] Building jar:
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/res
[crunch] To destination dir:
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
-compile:
[javac] Compiling 3 source files to
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use
-Xlint:-options.
[javac] 3 warnings
-post-compile:
-obfuscate:
-dex:
[dex] input:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
[dex] input:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
[dex] Pre-Dexing
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
-> classes-40f58b719036a91718ee0d06678bd472.jar
[dex] Converting compiled files and external libraries into
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes.dex...
[dx] Merged dex A (7 defs/2.2KiB) with dex B (209 defs/316.7KiB). Result
is 216 defs/388.2KiB. Took 0.1s
-crunch:
[crunch] Crunching PNG Files in source dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res
[crunch] To destination dir:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-hdpi/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-hdpi/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-hdpi/icon.png:
67% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-hdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-hdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-hdpi/screen.png:
97% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-ldpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-ldpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-ldpi/screen.png:
96% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-mdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-mdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-mdpi/screen.png:
97% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-xhdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-xhdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-xhdpi/screen.png:
99% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-ldpi/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-ldpi/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-ldpi/icon.png:
0% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-mdpi/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-mdpi/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-mdpi/icon.png:
0% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-hdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-hdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-hdpi/screen.png:
97% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-ldpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-ldpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-ldpi/screen.png:
97% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-mdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-mdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-mdpi/screen.png:
99% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-xhdpi/screen.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-xhdpi/screen.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-xhdpi/screen.png:
99% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-xhdpi/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-xhdpi/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-xhdpi/icon.png:
53% size of source)
[crunch] Processing image to cache:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable/icon.png
=>
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable/icon.png
[crunch] (processed image to cache entry
/Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/CordovaApp-debug.apk
[propertyfile] Creating new property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
[propertyfile] Updating property file:
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
-post-build:
[move] Moving 1 file to
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build
[move] Moving 1 file to
/Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build
debug:
BUILD SUCCESSFUL
Total time: 22 seconds
Built the following apk(s):
/Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/CordovaApp-debug.apk
> Can't build Cordova v5.0 Android v4
> -----------------------------------
>
> Key: CB-9112
> URL: https://issues.apache.org/jira/browse/CB-9112
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 5.0.1
> Environment: Mac OS X Yosemite
> node v0.12.2
> npm v2.3.0
> Android SDK <=v22
> Reporter: James Wade
>
> I am trying to get the basic Cordova v5.0 Android v4.0 project (note: using
> Cordova v4 builds successfully) to build on Mac OS X Yosemite, but keep
> getting this error. I have uninstalled and reinstalled the Android SDK,
> Cordova, and even Gradle (but I don't think I need it). I've checked that my
> Path variable contains the correct paths to <ANDROID_SDK>/tools and
> <ANDROID_SDK>/platform_tools. But when I do the 'cordova build' or 'cordova
> build android' using java v1.6 (java 1.7 and 1.8 below), I always get the
> same error:
> > Could not create an instance of type
> > org.gradle.invocation.DefaultGradle_Decorated.
> Further down it says:
> > You may not have the required environment or OS to build this project
> What am I missing?
> Here's the full text of what I'm doing:
> my_acct$cordova create build_test com.example.build_test "BuildTest"
> Creating a new cordova project.
> my_acct$cd build_test
> my_acct$cordova platform add android
> Adding android project...
> Creating Cordova project for the Android platform:
> Path: platforms/android
> Package: com.example.build_test
> Name: BuildTest
> Activity: MainActivity
> Android target: android-22
> Copying template files...
> Android project created with [email protected]
> Discovered plugin "cordova-plugin-whitelist" in config.xml. Installing to
> the project
> Fetching plugin "cordova-plugin-whitelist@1" via npm
> npm http GET https://registry.npmjs.org/cordova-plugin-whitelist
> npm http GET https://registry.npmjs.org/cordova-plugin-whitelist
> npm http 304 https://registry.npmjs.org/cordova-plugin-whitelist
> Installing "cordova-plugin-whitelist" for android
> my_acct$cordova build
> Running command:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build
>
> ANDROID_HOME=/Users/my_acct/Documents/Development/android-sdk-macosx/sdk
> JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
> Running:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
> cdvBuildDebug -b
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle
> -Dorg.gradle.daemon=true
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> Could not create an instance of type
> org.gradle.invocation.DefaultGradle_Decorated.
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
>
>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/node_modules/q/q.js:126
> throw e;
> ^
> Error code 1 for command:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
> with args:
> cdvBuildDebug,-b,/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle,-Dorg.gradle.daemon=true
> ERROR building one of the platforms: Error:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
> Command failed with exit code 8
> You may not have the required environment or OS to build this project
> Error:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
> Command failed with exit code 8
> at ChildProcess.whenDone
> (/Users/my_acct/.node/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
> at ChildProcess.emit (events.js:98:17)
> at maybeClose (child_process.js:766:16)
> at Process.ChildProcess._handle.onexit (child_process.js:833:5)
> If I change to use java 1.7 or 1.8, the error changes to:
> > A problem occurred configuring root project 'android'.
> > > Could not resolve all dependencies for configuration ':classpath'.
> > > Could not resolve com.android.tools.build:gradle:1.0.0+.
> > Required by:
> > :android:unspecified
> > >
> > org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
> Here's the full results for using java 1.7 or 1.8:
> my_acct$cordova build
> Running command:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build
>
> ANDROID_HOME=/Users/my_acct/Documents/Development/android-sdk-macosx/sdk
> JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_79.jdk/Contents/Home
> Running:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
> cdvBuildDebug -b
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle
> -Dorg.gradle.daemon=true
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> A problem occurred configuring root project 'android'.
> > Could not resolve all dependencies for configuration ':classpath'.
> > Could not resolve com.android.tools.build:gradle:1.0.0+.
> Required by:
> :android:unspecified
> >
> org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;[Ljava/lang/Object;Ljava/lang/Throwable;)V
>
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or
> --debug option to get more log output.
>
> BUILD FAILED
>
> Total time: 4.859 secs
>
>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/node_modules/q/q.js:126
> throw e;
> ^
> Error code 1 for command:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
> with args:
> cdvBuildDebug,-b,/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle,-Dorg.gradle.daemon=true
> ERROR building one of the platforms: Error:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
> Command failed with exit code 8
> You may not have the required environment or OS to build this project
> Error:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
> Command failed with exit code 8
> at ChildProcess.whenDone
> (/Users/my_acct/.node/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
> at ChildProcess.emit (events.js:98:17)
> at maybeClose (child_process.js:766:16)
> at Process.ChildProcess._handle.onexit (child_process.js:833:5)
> ============================================================================================
> Here's my output for Cordova v4:
> my_acct$cordova -v
> 4.0.0
> my_acct$cd ..
> my_acct$cordova create build_test gov.fema.build-test "BuildTest"
> Creating a new cordova project with name "BuildTest" and id
> "gov.fema.build-test" at location
> "/Users/my_acct/Documents/Development/work/build_test"
> Downloading cordova library for www...
> Download complete
> my_acct$cd build_test
> my_acct$ls
> config.xml hooks platforms plugins www
> my_acct$cordova platform add android
> npm http GET https://registry.npmjs.org/cordova-android/3.6.4
> npm http 200 https://registry.npmjs.org/cordova-android/3.6.4
> npm http GET
> https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.4.tgz
> npm http 200
> https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.4.tgz
> Creating android project...
> Creating Cordova project for the Android platform:
> Path: platforms/android
> Package: gov.fema.build_test
> Name: BuildTest
> Android target: android-19
> Copying template files...
> Project successfully created.
> my_acct$cordova build
> Running command:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build
>
> Buildfile:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/build.xml
> -set-mode-check:
> -set-debug-files:
> -check-env:
> [checkenv] Android SDK Tools Revision 24.3.0
> [checkenv] Installed at
> /Users/my_acct/Documents/Development/android-sdk-macosx/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: 22.0.1
> [echo] Resolving Build Target for CordovaApp...
> [gettarget] Project Target: Android 4.4.2
> [gettarget] API level: 19
> [echo] ----------
> [echo] Creating output directories if needed...
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/rsObj
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/rsLibs
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-gen
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/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 24.3.0
> [checkenv] Installed at
> /Users/my_acct/Documents/Development/android-sdk-macosx/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: 22.0.1
> [echo] Resolving Build Target for CordovaApp...
> [gettarget] Project Target: Android 4.4.2
> [gettarget] API level: 19
> [echo] ----------
> [echo] Creating output directories if needed...
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/res
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/libs
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/res
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/rsObj
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/rsLibs
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-gen
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes
> [javac] warning: [options] source value 1.5 is obsolete and will be
> removed in a future release
> [javac] warning: [options] target value 1.5 is obsolete and will be
> removed in a future release
> [javac] warning: [options] To suppress warnings about obsolete options,
> use -Xlint:-options.
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -Xlint:deprecation for details.
> [javac] 3 warnings
> [echo] Creating library output jar file...
> [jar] Building jar:
> /Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/res
> [crunch] To destination dir:
> /Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
> [propertyfile] Updating property file:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
> [propertyfile] Updating property file:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
> [propertyfile] Updating property file:
> /Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
> -compile:
> [javac] Compiling 3 source files to
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
> [javac] warning: [options] source value 1.5 is obsolete and will be
> removed in a future release
> [javac] warning: [options] target value 1.5 is obsolete and will be
> removed in a future release
> [javac] warning: [options] To suppress warnings about obsolete options,
> use -Xlint:-options.
> [javac] 3 warnings
> -post-compile:
> -obfuscate:
> -dex:
> [dex] input:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
> [dex] input:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
> [dex] Pre-Dexing
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
> -> classes-40f58b719036a91718ee0d06678bd472.jar
> [dex] Converting compiled files and external libraries into
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes.dex...
> [dx] Merged dex A (7 defs/2.2KiB) with dex B (209 defs/316.7KiB).
> Result is 216 defs/388.2KiB. Took 0.1s
> -crunch:
> [crunch] Crunching PNG Files in source dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res
> [crunch] To destination dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-hdpi/icon.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-hdpi/icon.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-hdpi/icon.png:
> 67% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-hdpi/screen.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-hdpi/screen.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-hdpi/screen.png:
> 97% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-ldpi/screen.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-ldpi/screen.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-ldpi/screen.png:
> 96% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-mdpi/screen.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-mdpi/screen.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-mdpi/screen.png:
> 97% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-xhdpi/screen.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-xhdpi/screen.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-xhdpi/screen.png:
> 99% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-ldpi/icon.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-ldpi/icon.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-ldpi/icon.png:
> 0% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-mdpi/icon.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-mdpi/icon.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-mdpi/icon.png:
> 0% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-hdpi/screen.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-hdpi/screen.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-hdpi/screen.png:
> 97% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-ldpi/screen.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-ldpi/screen.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-ldpi/screen.png:
> 97% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-mdpi/screen.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-mdpi/screen.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-mdpi/screen.png:
> 99% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-xhdpi/screen.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-xhdpi/screen.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-xhdpi/screen.png:
> 99% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-xhdpi/icon.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-xhdpi/icon.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-xhdpi/icon.png:
> 53% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable/icon.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable/icon.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/CordovaApp-debug.apk
> [propertyfile] Creating new property file:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
> [propertyfile] Updating property file:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
> [propertyfile] Updating property file:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
> [propertyfile] Updating property file:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
> -post-build:
> [move] Moving 1 file to
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build
> [move] Moving 1 file to
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build
> debug:
> BUILD SUCCESSFUL
> Total time: 22 seconds
> Built the following apk(s):
>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/CordovaApp-debug.apkmy_acct$cordova
> -v
> 4.0.0
> my_acct$cd ..
> my_acct$cordova create build_test gov.fema.build-test "BuildTest"
> Creating a new cordova project with name "BuildTest" and id
> "gov.fema.build-test" at location
> "/Users/my_acct/Documents/Development/work/build_test"
> Downloading cordova library for www...
> Download complete
> my_acct$cd build_test
> my_acct$ls
> config.xml hooks platforms plugins www
> my_acct$cordova platform add android
> npm http GET https://registry.npmjs.org/cordova-android/3.6.4
> npm http 200 https://registry.npmjs.org/cordova-android/3.6.4
> npm http GET
> https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.4.tgz
> npm http 200
> https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.4.tgz
> Creating android project...
> Creating Cordova project for the Android platform:
> Path: platforms/android
> Package: gov.fema.build_test
> Name: BuildTest
> Android target: android-19
> Copying template files...
> Project successfully created.
> my_acct$cordova build
> Running command:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build
>
> Buildfile:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/build.xml
> -set-mode-check:
> -set-debug-files:
> -check-env:
> [checkenv] Android SDK Tools Revision 24.3.0
> [checkenv] Installed at
> /Users/my_acct/Documents/Development/android-sdk-macosx/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: 22.0.1
> [echo] Resolving Build Target for CordovaApp...
> [gettarget] Project Target: Android 4.4.2
> [gettarget] API level: 19
> [echo] ----------
> [echo] Creating output directories if needed...
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/rsObj
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/rsLibs
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-gen
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/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 24.3.0
> [checkenv] Installed at
> /Users/my_acct/Documents/Development/android-sdk-macosx/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: 22.0.1
> [echo] Resolving Build Target for CordovaApp...
> [gettarget] Project Target: Android 4.4.2
> [gettarget] API level: 19
> [echo] ----------
> [echo] Creating output directories if needed...
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/res
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/libs
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/res
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/rsObj
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/rsLibs
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-gen
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes
> [mkdir] Created dir:
> /Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes
> [javac] warning: [options] source value 1.5 is obsolete and will be
> removed in a future release
> [javac] warning: [options] target value 1.5 is obsolete and will be
> removed in a future release
> [javac] warning: [options] To suppress warnings about obsolete options,
> use -Xlint:-options.
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -Xlint:deprecation for details.
> [javac] 3 warnings
> [echo] Creating library output jar file...
> [jar] Building jar:
> /Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/res
> [crunch] To destination dir:
> /Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
> [propertyfile] Updating property file:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
> [propertyfile] Updating property file:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/build.prop
> [propertyfile] Updating property file:
> /Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
> -compile:
> [javac] Compiling 3 source files to
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
> [javac] warning: [options] source value 1.5 is obsolete and will be
> removed in a future release
> [javac] warning: [options] target value 1.5 is obsolete and will be
> removed in a future release
> [javac] warning: [options] To suppress warnings about obsolete options,
> use -Xlint:-options.
> [javac] 3 warnings
> -post-compile:
> -obfuscate:
> -dex:
> [dex] input:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes
> [dex] input:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
> [dex] Pre-Dexing
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build/classes.jar
> -> classes-40f58b719036a91718ee0d06678bd472.jar
> [dex] Converting compiled files and external libraries into
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/classes.dex...
> [dx] Merged dex A (7 defs/2.2KiB) with dex B (209 defs/316.7KiB).
> Result is 216 defs/388.2KiB. Took 0.1s
> -crunch:
> [crunch] Crunching PNG Files in source dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res
> [crunch] To destination dir:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-hdpi/icon.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-hdpi/icon.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-hdpi/icon.png:
> 67% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-hdpi/screen.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-hdpi/screen.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-hdpi/screen.png:
> 97% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-ldpi/screen.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-ldpi/screen.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-ldpi/screen.png:
> 96% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-mdpi/screen.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-mdpi/screen.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-mdpi/screen.png:
> 97% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-land-xhdpi/screen.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-xhdpi/screen.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-land-xhdpi/screen.png:
> 99% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-ldpi/icon.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-ldpi/icon.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-ldpi/icon.png:
> 0% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-mdpi/icon.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-mdpi/icon.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-mdpi/icon.png:
> 0% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-hdpi/screen.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-hdpi/screen.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-hdpi/screen.png:
> 97% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-ldpi/screen.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-ldpi/screen.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-ldpi/screen.png:
> 97% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-mdpi/screen.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-mdpi/screen.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-mdpi/screen.png:
> 99% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-port-xhdpi/screen.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-xhdpi/screen.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-port-xhdpi/screen.png:
> 99% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable-xhdpi/icon.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-xhdpi/icon.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable-xhdpi/icon.png:
> 53% size of source)
> [crunch] Processing image to cache:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/res/drawable/icon.png
> =>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/res/drawable/icon.png
> [crunch] (processed image to cache entry
> /Users/my_acct/Documents/Development/work/build_test/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/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/CordovaApp-debug.apk
> [propertyfile] Creating new property file:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
> [propertyfile] Updating property file:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
> [propertyfile] Updating property file:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
> [propertyfile] Updating property file:
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/build.prop
> -post-build:
> [move] Moving 1 file to
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build
> [move] Moving 1 file to
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/CordovaLib/ant-build
> debug:
> BUILD SUCCESSFUL
> Total time: 22 seconds
> Built the following apk(s):
>
> /Users/my_acct/Documents/Development/work/build_test/platforms/android/ant-build/CordovaApp-debug.apk
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]