Software Archive
Read-only legacy content
17061 Discussions

Android Build Fail

Samuel_G_1
Beginner
399 Views

Builds starting failing today....with no reason.

Installing "org.apache.cordova.device" for android
Installing "org.apache.cordova.splashscreen" for android
Installing "org.apache.cordova.dialogs" for android
Installing "com.intel.xdk.device" for android
Generating config.xml from defaults for platform "android"
Calling plugman.prepare for platform "android"
Preparing android project
Processing configuration changes for plugins.
Iterating over installed plugins: [ 'org.apache.cordova.device',
  'org.apache.cordova.splashscreen',
  'org.apache.cordova.dialogs',
  'com.intel.xdk.device' ]
Writing out cordova_plugins.js...
Wrote out Android application name to "boatInstruments"
This app does not have launcher icons defined
Wrote out Android package name to "xdk.sample.helloworld"
************* Processing the main config.xml file (after_prepare)  *****************
App Directory = [.../boatInstruments]
Will process and update the following config files:
    Config.xml = [.../boatInstruments/config.xml]
Namespaces:
    prefix/uri ''/'http://www.w3.org/ns/widgets'
    prefix/uri 'intelxdk'/'http://xdk.intel.com/ns/v1'
Android Manifest Namespaces:
    prefix/uri 'android'/'http://schemas.android.com/apk/res/android'
Name of the app is [boatInstruments]
Updating full app name to [boatInstruments]
Processing preference android-minSdkVersion [10]
Processing preference android-targetSdkVersion [19]
Processing preference android-installLocation [auto]
Processing preference Orientation [portrait]
    Added [{http://schemas.android.com/apk/res/android}screenOrientation] with [portrait]
Found permission [ACCESS_COARSE_LOCATION]
Found permission [ACCESS_FINE_LOCATION]
Processing preference permissions
Added [{http://schemas.android.com/apk/res/android}name] with [android.permission.ACCESS_COARSE_LOCATION]
Added [{http://schemas.android.com/apk/res/android}name] with [android.permission.ACCESS_FINE_LOCATION]
Updating the versionCode
Updating the versionName
Processing debuggable
Added [{http://schemas.android.com/apk/res/android}debuggable] with [true]
Processing config file values
No splash screen supplied for drawable-land-mdpi.  Cleaning up.
Removing unused density: .../boatInstruments/platforms/android/res/drawable-land-mdpi
No splash screen supplied for drawable-port-xhdpi.  Cleaning up.
Removing unused density: .../boatInstruments/platforms/android/res/drawable-port-xhdpi
No splash screen supplied for drawable-port-ldpi.  Cleaning up.
Removing unused density: .../boatInstruments/platforms/android/res/drawable-port-ldpi
No splash screen supplied for drawable-land-ldpi.  Cleaning up.
Removing unused density: .../boatInstruments/platforms/android/res/drawable-land-ldpi
No splash screen supplied for drawable-port-hdpi.  Cleaning up.
Removing unused density: .../boatInstruments/platforms/android/res/drawable-port-hdpi
No splash screen supplied for drawable-land-xhdpi.  Cleaning up.
Removing unused density: .../boatInstruments/platforms/android/res/drawable-land-xhdpi
No splash screen supplied for drawable-land-hdpi.  Cleaning up.
Removing unused density: .../boatInstruments/platforms/android/res/drawable-land-hdpi
No splash screen supplied for drawable-port-mdpi.  Cleaning up.
Removing unused density: .../boatInstruments/platforms/android/res/drawable-port-mdpi
Saving config.xml to [.../boatInstruments/config.xml]
************* Completed processing the main config.xml file (after_prepare)  *****************
Running command: .../boatInstruments/platforms/android/cordova/build --release
Buildfile: .../boatInstruments/platforms/android/build.xml

-set-mode-check:

-set-release-mode:
     [echo] *************************************************
     [echo] ****  Android Manifest has debuggable=true   ****
     [echo] **** Doing DEBUG packaging with RELEASE keys ****
     [echo] *************************************************

-release-obfuscation-check:
     [echo] proguard.config is ${proguard.config}

-pre-build:

-check-env:
 [checkenv] Android SDK Tools Revision 22.3.0
 [checkenv] Installed at /Developer/android-sdk-linux

-setup:
     [echo] Project Name: CordovaApp
  [gettype] Project Type: Application

-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.0
     [echo] Resolving Build Target for CordovaApp...
[gettarget] Project Target:   Android 4.4
[gettarget] API level:        19
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: .../boatInstruments/platforms/android/ant-build
    [mkdir] Created dir: .../boatInstruments/platforms/android/ant-build/res
    [mkdir] Created dir: .../boatInstruments/platforms/android/ant-build/rsObj
    [mkdir] Created dir: .../boatInstruments/platforms/android/ant-build/rsLibs
    [mkdir] Created dir: .../boatInstruments/platforms/android/ant-gen
    [mkdir] Created dir: .../boatInstruments/platforms/android/ant-build/classes
    [mkdir] Created dir: .../boatInstruments/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 'release'...

nodeps:

-set-mode-check:

-set-release-mode:

-release-obfuscation-check:
     [echo] proguard.config is ${proguard.config}

-pre-build:

-check-env:
 [checkenv] Android SDK Tools Revision 22.3.0
 [checkenv] Installed at /Developer/android-sdk-linux

-setup:
     [echo] Project Name: CordovaApp
  [gettype] Project Type: Android Library

-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.0
     [echo] Resolving Build Target for CordovaApp...
[gettarget] Project Target:   Android 4.4
[gettarget] API level:        19
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: .../boatInstruments/platforms/android/CordovaLib/res
    [mkdir] Created dir: .../boatInstruments/platforms/android/CordovaLib/libs
    [mkdir] Created dir: .../boatInstruments/platforms/android/CordovaLib/ant-build
    [mkdir] Created dir: .../boatInstruments/platforms/android/CordovaLib/ant-build/res
    [mkdir] Created dir: .../boatInstruments/platforms/android/CordovaLib/ant-build/rsObj
    [mkdir] Created dir: .../boatInstruments/platforms/android/CordovaLib/ant-build/rsLibs
    [mkdir] Created dir: .../boatInstruments/platforms/android/CordovaLib/ant-gen
    [mkdir] Created dir: .../boatInstruments/platforms/android/CordovaLib/ant-build/classes
    [mkdir] Created dir: .../boatInstruments/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 .../boatInstruments/platforms/android/CordovaLib/ant-build/classes
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
     [echo] Creating library output jar file...
      [jar] Building jar: .../boatInstruments/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: .../boatInstruments/platforms/android/CordovaLib/res
   [crunch] To destination dir: .../boatInstruments/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:

-release-prompt-for-password:

-release-nosign:
     [echo] 
[propertyfile] Creating new property file: .../boatInstruments/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file: .../boatInstruments/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file: .../boatInstruments/platforms/android/CordovaLib/ant-build/build.prop
[propertyfile] Updating property file: .../boatInstruments/platforms/android/CordovaLib/ant-build/build.prop

-release-sign:

-post-build:

release:

-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: .../boatInstruments/platforms/android/CordovaLib/ant-build/classes.jar:.../boatInstruments/platforms/android/libs/com.google.zxing.client.android.captureactivity.jar

-compile:
    [javac] Compiling 8 source files to .../boatInstruments/platforms/android/ant-build/classes
    [javac] Note: .../boatInstruments/platforms/android/src/com/intel/xdk/device/Device.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: .../boatInstruments/platforms/android/src/com/intel/xdk/device/Device.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.

-post-compile:

-obfuscate:

-dex:
      [dex] input: .../boatInstruments/platforms/android/ant-build/classes
      [dex] input: .../boatInstruments/platforms/android/CordovaLib/ant-build/classes.jar
      [dex] input: .../boatInstruments/platforms/android/libs/com.google.zxing.client.android.captureactivity.jar
      [dex] Pre-Dexing .../boatInstruments/platforms/android/CordovaLib/ant-build/classes.jar -> classes-287d50d2cac22602c374aa9f8ab125f1.jar
      [dex] Pre-Dexing .../boatInstruments/platforms/android/libs/com.google.zxing.client.android.captureactivity.jar -> com.google.zxing.client.android.captureactivity-2479c7212f84f23e830f3ebd3eba1c82.jar
      [dex] Converting compiled files and external libraries into .../boatInstruments/platforms/android/ant-build/classes.dex...
       [dx] Merged dex A (53 defs/67.2KiB) with dex B (209 defs/317.3KiB). Result is 262 defs/465.5KiB. Took 0.6s
       [dx] Merged dex A (262 defs/465.5KiB) with dex B (343 defs/552.6KiB). Result is 605 defs/1283.9KiB. Took 0.3s

-crunch:
   [crunch] Crunching PNG Files in source dir: .../boatInstruments/platforms/android/res
   [crunch] To destination dir: .../boatInstruments/platforms/android/ant-build/res
   [crunch] Processing image to cache: .../boatInstruments/platforms/android/res/drawable-hdpi/icon.png => .../boatInstruments/platforms/android/ant-build/res/drawable-hdpi/icon.png
   [crunch]   (processed image to cache entry .../boatInstruments/platforms/android/ant-build/res/drawable-hdpi/icon.png: 67% size of source)
   [crunch] Processing image to cache: .../boatInstruments/platforms/android/res/drawable-hdpi/launcher_icon.png => .../boatInstruments/platforms/android/ant-build/res/drawable-hdpi/launcher_icon.png
   [crunch]   (processed image to cache entry .../boatInstruments/platforms/android/ant-build/res/drawable-hdpi/launcher_icon.png: 0% size of source)
   [crunch] Processing image to cache: .../boatInstruments/platforms/android/res/drawable-hdpi/shopper_icon.png => .../boatInstruments/platforms/android/ant-build/res/drawable-hdpi/shopper_icon.png
   [crunch]   (processed image to cache entry .../boatInstruments/platforms/android/ant-build/res/drawable-hdpi/shopper_icon.png: 0% size of source)
   [crunch] Processing image to cache: .../boatInstruments/platforms/android/res/drawable-ldpi/icon.png => .../boatInstruments/platforms/android/ant-build/res/drawable-ldpi/icon.png
   [crunch]   (processed image to cache entry .../boatInstruments/platforms/android/ant-build/res/drawable-ldpi/icon.png: 0% size of source)
   [crunch] Processing image to cache: .../boatInstruments/platforms/android/res/drawable-mdpi/icon.png => .../boatInstruments/platforms/android/ant-build/res/drawable-mdpi/icon.png
   [crunch]   (processed image to cache entry .../boatInstruments/platforms/android/ant-build/res/drawable-mdpi/icon.png: 0% size of source)
   [crunch] Processing image to cache: .../boatInstruments/platforms/android/res/drawable-xhdpi/icon.png => .../boatInstruments/platforms/android/ant-build/res/drawable-xhdpi/icon.png
   [crunch]   (processed image to cache entry .../boatInstruments/platforms/android/ant-build/res/drawable-xhdpi/icon.png: 53% size of source)
   [crunch] Processing image to cache: .../boatInstruments/platforms/android/res/drawable-xhdpi/launcher_icon.png => .../boatInstruments/platforms/android/ant-build/res/drawable-xhdpi/launcher_icon.png
   [crunch]   (processed image to cache entry .../boatInstruments/platforms/android/ant-build/res/drawable-xhdpi/launcher_icon.png: 46% size of source)
   [crunch] Processing image to cache: .../boatInstruments/platforms/android/res/drawable-xhdpi/remote_close.png => .../boatInstruments/platforms/android/ant-build/res/drawable-xhdpi/remote_close.png
   [crunch]   (processed image to cache entry .../boatInstruments/platforms/android/ant-build/res/drawable-xhdpi/remote_close.png: 0% size of source)
   [crunch] Processing image to cache: .../boatInstruments/platforms/android/res/drawable-xxhdpi/launcher_icon.png => .../boatInstruments/platforms/android/ant-build/res/drawable-xxhdpi/launcher_icon.png
   [crunch]   (processed image to cache entry .../boatInstruments/platforms/android/ant-build/res/drawable-xxhdpi/launcher_icon.png: 63% size of source)
   [crunch] Processing image to cache: .../boatInstruments/platforms/android/res/drawable/icon.png => .../boatInstruments/platforms/android/ant-build/res/drawable/icon.png
   [crunch]   (processed image to cache entry .../boatInstruments/platforms/android/ant-build/res/drawable/icon.png: 53% size of source)
   [crunch] Processing image to cache: .../boatInstruments/platforms/android/res/drawable/launcher_icon.png => .../boatInstruments/platforms/android/ant-build/res/drawable/launcher_icon.png
   [crunch]   (processed image to cache entry .../boatInstruments/platforms/android/ant-build/res/drawable/launcher_icon.png: 0% size of source)
   [crunch] Processing image to cache: .../boatInstruments/platforms/android/res/drawable/share_via_barcode.png => .../boatInstruments/platforms/android/ant-build/res/drawable/share_via_barcode.png
   [crunch]   (processed image to cache entry .../boatInstruments/platforms/android/ant-build/res/drawable/share_via_barcode.png: 0% size of source)
   [crunch] Processing image to cache: .../boatInstruments/platforms/android/res/drawable/shopper_icon.png => .../boatInstruments/platforms/android/ant-build/res/drawable/shopper_icon.png
   [crunch]   (processed image to cache entry .../boatInstruments/platforms/android/ant-build/res/drawable/shopper_icon.png: 0% size of source)
   [crunch] Crunched 13 PNG files to update cache

-package-resources:
     [aapt] Creating full resource package...
     [aapt] Warning: AndroidManifest.xml already defines debuggable (in http://schemas.android.com/apk/res/android); using existing value in manifest.

-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating CordovaApp-release-unsigned.apk for release...

-post-package:

-release-prompt-for-password:

-release-nosign:
     [echo] No key.store and key.alias properties found in build.properties.
     [echo] Please sign .../boatInstruments/platforms/android/ant-build/CordovaApp-release-unsigned.apk manually
     [echo] and run zipalign from the Android SDK tools.
[propertyfile] Creating new property file: .../boatInstruments/platforms/android/ant-build/build.prop
[propertyfile] Updating property file: .../boatInstruments/platforms/android/ant-build/build.prop
[propertyfile] Updating property file: .../boatInstruments/platforms/android/ant-build/build.prop
[propertyfile] Updating property file: .../boatInstruments/platforms/android/ant-build/build.prop

-release-sign:

-post-build:
     [move] Moving 1 file to .../boatInstruments/platforms/android/ant-build
     [move] Moving 1 file to .../boatInstruments/platforms/android/CordovaLib/ant-build

release:

BUILD SUCCESSFUL
Total time: 17 seconds
Built the following apk(s):
    .../boatInstruments/platforms/android/ant-build/CordovaApp-release-unsigned.apk
Command finished with error code 0: .../boatInstruments/platforms/android/cordova/build --release
0 Kudos
3 Replies
Elroy_A_Intel
Employee
399 Views

Are you still experiencing this issue?

0 Kudos
Thomas_R_1
Beginner
399 Views

It's happening to me too, since 18:00 GMT+1. I've been searching for a while about this issue, I tested removing my project from Intel XDK, deleting my previous modifications, removing the content of my app.js (it has no dependencies) nothing will do. 

It does build for iOS and Crosswalk Android. But it does not buid Cordova Android.

An error occurred while building the application. Verify your build assets are correct and try again.
Build Log: Building a Cordova 3.5 application. The application name is "*******" The package name is "com.******.**********" Preference android-signed set to true. Application will be signed.

0 Kudos
John_H_Intel2
Employee
399 Views

There was an issue which has been fixed. Sorry for the delay in getting this resolved.

0 Kudos
Reply