Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Android Binary APK build failing

Hi,

I've attempted to compile my app to APK this morning and although the app runs while testing in the browser, the build is failing with the "Oh No, that wasn't supposed to happen" message.

Full log below:
Started by user anonymous
Building remotely on Tiggzi-git

Deleting project workspace... done

[copy-to-slave] Copying '54874/91850/android/**/*', excluding nothing, from 'file:/srv/tiggzi/temp/build_temp/' on the master to 'file:/srv/tiggzi/lib/jenkins/workspace/91850-android/' on 'Tiggzi-git'.
[91850-android] $ /bin/sh -xe /tmp/hudson5828440528740057325.sh
[91850-android] $ /bin/sh -xe /tmp/hudson3538163114785064889.sh

  • TARGET_NODE=a href="mailto:tiggzi@appery.io" rel="nofollow"tiggzi@appery.io/a

  • TARGET_DIR=/srv/tiggzi/temp/files/BINARY/91850-android

  • SOURCE_FILE_NAME=MotorwayCamWatch.zip

  • SOURCE_RELATIVE_PATH=./54874/91850/android

  • SRC_ZIP=./54874/91850/android/MotorwayCamWatch.zip
    ++ cut -d . -f1
    ++ echo MotorwayCamWatch.zip

  • SRC_DIR_NAME=MotorwayCamWatch
    ++ unzip -qo ./54874/91850/android/MotorwayCamWatch.zip -d ./54874/91850/android
    ++ chmod -R 777 ./54874/91850/android

  • echo 'Extracting sources from archive'
    Extracting sources from archive

  • chmod -R 777 ./54874/91850/android

  • SSH_KEY=/srv/tiggzi/.ssh/jenkins.key

  • ssh -i /srv/tiggzi/.ssh/jenkins.key a href="mailto:tiggzi@appery.io" rel="nofollow"tiggzi@appery.io/a 'mkdir -p /srv/tiggzi/temp/files/BINARY/91850-android; rm -f /srv/tiggzi/temp/files/BINARY/91850-android/*.apk'

  • cd ./54874/91850/android

  • mvn clean package
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Build Order:
    [INFO]
    [INFO] MotorwayCamWatch-parent
    [INFO] barcode scanner
    [INFO] MotorwayCamWatch
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building MotorwayCamWatch-parent 3.7-parent
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ MotorwayCamWatch-parent ---
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building barcode scanner 1.0
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ BarcodeScanner ---
    [INFO]
    [INFO] --- android-maven-plugin:3.0.0:generate-sources (default-generate-sources) @ BarcodeScanner ---
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt [package, -m, -J, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/target/generated-sources/r, -M, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/AndroidManifest.xml, -S, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/res, --auto-add-overlay, -A, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/assets, -I, /srv/tiggzi/lib/android-sdk-linux_x86/platforms/android-10/android.jar]
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt: /lib/libz.so.1: no version information available (required by /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt)
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ BarcodeScanner ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/src/main/resources
    [INFO] skip non existing resourceDirectory /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/target/generated-sources/extracted-dependencies/src/main/resources
    [INFO]
    [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ BarcodeScanner ---
    [INFO] Compiling 238 source files to /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/target/classes
    [INFO]
    [INFO] --- android-maven-plugin:3.0.0:proguard (default-proguard) @ BarcodeScanner ---
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ BarcodeScanner ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/src/test/resources
    [INFO]
    [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ BarcodeScanner ---
    [INFO] No sources to compile
    [INFO]
    [INFO] --- maven-surefire-plugin:2.12:test (default-test) @ BarcodeScanner ---
    [INFO] No tests to run.
    [INFO] Surefire report directory: /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/target/surefire-reports

    -------------------------------------------------------
    T E S T S
    -------------------------------------------------------

    Results :

    Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

    [INFO]
    [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ BarcodeScanner ---
    [INFO] Building jar: /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/target/BarcodeScanner-1.0.jar
    [INFO]
    [INFO] --- android-maven-plugin:3.0.0:apklib (default-apklib) @ BarcodeScanner ---
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt [package, -f, -M, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/AndroidManifest.xml, -S, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/res, --auto-add-overlay, -A, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/assets, -I, /srv/tiggzi/lib/android-sdk-linux_x86/platforms/android-10/android.jar, -F, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/target/BarcodeScanner-1.0.ap_]
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt: /lib/libz.so.1: no version information available (required by /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt)
    [INFO] Building jar: /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/target/BarcodeScanner-1.0.apklib
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building MotorwayCamWatch 3.7
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ MotorwayCamWatch ---
    [INFO]
    [INFO] --- android-maven-plugin:3.0.0:generate-sources (default-generate-sources) @ MotorwayCamWatch ---
    [DEBUG] Expanding: /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/target/BarcodeScanner-1.0.apklib into /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0
    [DEBUG] expand complete
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt [package, -m, -J, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/generated-sources/r, -M, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/AndroidManifest.xml, -S, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/res, -S, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res, --auto-add-overlay, -A, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/assets, -I, /srv/tiggzi/lib/android-sdk-linux_x86/platforms/android-8/android.jar]
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt: /lib/libz.so.1: no version information available (required by /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt)
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt [package, -m, -J, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/generated-sources/r, --custom-package, com.google.zxing.client.android, -M, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/AndroidManifest.xml, -S, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/res, -S, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res, --auto-add-overlay, -A, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/assets, -A, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/assets, -I, /srv/tiggzi/lib/android-sdk-linux_x86/platforms/android-8/android.jar]
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt: /lib/libz.so.1: no version information available (required by /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt)
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ MotorwayCamWatch ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/src/main/resources
    [INFO] skip non existing resourceDirectory /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/generated-sources/extracted-dependencies/src/main/resources
    [INFO] Copying 0 resource
    [INFO]
    [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ MotorwayCamWatch ---
    [INFO] Compiling 253 source files to /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/classes
    [INFO] -------------------------------------------------------------
    [ERROR] COMPILATION ERROR :
    [INFO] -------------------------------------------------------------
    [ERROR] /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/src/io/appery/project91850/GCMIntentService.java:[67,36] package R does not exist
    [ERROR] /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/src/io/appery/project91850/GCMIntentService.java:[90,24] package R does not exist
    [ERROR] /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/src/io/appery/project91850/GCMIntentService.java:[95,46] package R does not exist
    [INFO] 3 errors
    [INFO] -------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] MotorwayCamWatch-parent ........................... SUCCESS [0.249s]
    [INFO] barcode scanner ................................... SUCCESS [13.772s]
    [INFO] MotorwayCamWatch .................................. FAILURE [7.127s]
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 22.884s
    [INFO] Finished at: Wed Jul 03 10:51:57 UTC 2013
    [INFO] Final Memory: 13M/39M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project MotorwayCamWatch: Compilation failure: Compilation failure:
    [ERROR] /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/src/io/appery/project91850/GCMIntentService.java:[67,36] package R does not exist
    [ERROR] /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/src/io/appery/project91850/GCMIntentService.java:[90,24] package R does not exist
    [ERROR] /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/src/io/appery/project91850/GCMIntentService.java:[95,46] package R does not exist
    [ERROR] - [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/di...
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR] mvn -rf :MotorwayCamWatch
    Build step 'Execute shell' marked build as failure
    Finished: FAILURE

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Android Binary APK build failing

Hi Andy,

We are able to reproduce the issue. Please make sure you don't have any duplicated resources (images with the same name and different extensions etc).

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Android Binary APK build failing

We found how to fix the problem. Open your app in the editor and delete everything from Sources for Android, then call Undo all. This should help. The problem seems to appear when you change package name.

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Android Binary APK build failing

Thanks Katya,

completely deleted the source, then undo all.

Thats not sorted it unfortunately.

Should I delete the source, then exit the app, then go back into the editor and select undo all?

What I did was delete it, then undo all straight away....

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Android Binary APK build failing

On Sources tab on platform menu you can choose "Undo all".

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Android Binary APK build failing

This still does not compile to APK.

I've deleted from Source, both my app and the barcode app.

Then, once they had deleted I selected the undo, that took quite some time, but now the error has changed.

I've shared the app "motorwaycamwatch" with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a.

Started by user anonymous
Building remotely on Tiggzi-git

Deleting project workspace... done

[copy-to-slave] Copying '54874/91850/android/**/*', excluding nothing, from 'file:/srv/tiggzi/temp/build_temp/' on the master to 'file:/srv/tiggzi/lib/jenkins/workspace/91850-android/' on 'Tiggzi-git'.
[91850-android] $ /bin/sh -xe /tmp/hudson7355429043936260010.sh
[91850-android] $ /bin/sh -xe /tmp/hudson6726511158812920462.sh

  • TARGET_NODE=a href="mailto:tiggzi@appery.io" rel="nofollow"tiggzi@appery.io/a

  • TARGET_DIR=/srv/tiggzi/temp/files/BINARY/91850-android

  • SOURCE_FILE_NAME=MotorwayCamWatch.zip

  • SOURCE_RELATIVE_PATH=./54874/91850/android

  • SRC_ZIP=./54874/91850/android/MotorwayCamWatch.zip
    ++ cut -d . -f1
    ++ echo MotorwayCamWatch.zip

  • SRC_DIR_NAME=MotorwayCamWatch
    ++ unzip -qo ./54874/91850/android/MotorwayCamWatch.zip -d ./54874/91850/android
    ++ chmod -R 777 ./54874/91850/android

  • echo 'Extracting sources from archive'
    Extracting sources from archive

  • chmod -R 777 ./54874/91850/android

  • SSH_KEY=/srv/tiggzi/.ssh/jenkins.key

  • ssh -i /srv/tiggzi/.ssh/jenkins.key a href="mailto:tiggzi@appery.io" rel="nofollow"tiggzi@appery.io/a 'mkdir -p /srv/tiggzi/temp/files/BINARY/91850-android; rm -f /srv/tiggzi/temp/files/BINARY/91850-android/*.apk'

  • cd ./54874/91850/android

  • mvn clean package
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Build Order:
    [INFO]
    [INFO] MotorwayCamWatch-parent
    [INFO] barcode scanner
    [INFO] MotorwayCamWatch
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building MotorwayCamWatch-parent 3.7-parent
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ MotorwayCamWatch-parent ---
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building barcode scanner 1.0
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ BarcodeScanner ---
    [INFO]
    [INFO] --- android-maven-plugin:3.0.0:generate-sources (default-generate-sources) @ BarcodeScanner ---
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt [package, -m, -J, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/target/generated-sources/r, -M, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/AndroidManifest.xml, -S, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/res, --auto-add-overlay, -A, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/assets, -I, /srv/tiggzi/lib/android-sdk-linux_x86/platforms/android-10/android.jar]
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt: /lib/libz.so.1: no version information available (required by /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt)
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ BarcodeScanner ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/src/main/resources
    [INFO] skip non existing resourceDirectory /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/target/generated-sources/extracted-dependencies/src/main/resources
    [INFO]
    [INFO] --- maven-compiler-plugin:2.5.1:compile (default-compile) @ BarcodeScanner ---
    [INFO] Compiling 238 source files to /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/target/classes
    [INFO]
    [INFO] --- android-maven-plugin:3.0.0:proguard (default-proguard) @ BarcodeScanner ---
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ BarcodeScanner ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/src/test/resources
    [INFO]
    [INFO] --- maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @ BarcodeScanner ---
    [INFO] No sources to compile
    [INFO]
    [INFO] --- maven-surefire-plugin:2.12:test (default-test) @ BarcodeScanner ---
    [INFO] No tests to run.
    [INFO] Surefire report directory: /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/target/surefire-reports

    -------------------------------------------------------
    T E S T S
    -------------------------------------------------------

    Results :

    Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

    [INFO]
    [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ BarcodeScanner ---
    [INFO] Building jar: /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/target/BarcodeScanner-1.0.jar
    [INFO]
    [INFO] --- android-maven-plugin:3.0.0:apklib (default-apklib) @ BarcodeScanner ---
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt [package, -f, -M, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/AndroidManifest.xml, -S, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/res, --auto-add-overlay, -A, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/assets, -I, /srv/tiggzi/lib/android-sdk-linux_x86/platforms/android-10/android.jar, -F, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/target/BarcodeScanner-1.0.ap_]
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt: /lib/libz.so.1: no version information available (required by /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt)
    [INFO] Building jar: /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/target/BarcodeScanner-1.0.apklib
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building MotorwayCamWatch 3.7
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ MotorwayCamWatch ---
    [INFO]
    [INFO] --- android-maven-plugin:3.0.0:generate-sources (default-generate-sources) @ MotorwayCamWatch ---
    [DEBUG] Expanding: /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/target/BarcodeScanner-1.0.apklib into /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0
    [DEBUG] expand complete
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] ANDROID-904-002: Found aidl files: Count = 0
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt [package, -m, -J, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/generated-sources/r, -M, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/AndroidManifest.xml, -S, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/res, -S, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res, --auto-add-overlay, -A, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/assets, -I, /srv/tiggzi/lib/android-sdk-linux_x86/platforms/android-8/android.jar]
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt: /lib/libz.so.1: no version information available (required by /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt)
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt [package, -m, -J, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/generated-sources/r, --custom-package, com.google.zxing.client.android, -M, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/AndroidManifest.xml, -S, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/res, -S, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res, --auto-add-overlay, -A, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/assets, -A, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/assets, -I, /srv/tiggzi/lib/android-sdk-linux_x86/platforms/android-8/android.jar]
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt: /lib/libz.so.1: no version information available (required by /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt)
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:resources (default-resources) @ MotorwayCamWatch ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/src/main/resources
    [INFO] skip non existing resourceDirectory /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/generated-sources/extracted-dependencies/src/main/resources
    [INFO] Copying 0 resource
    [INFO]
    [INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ MotorwayCamWatch ---
    [INFO] Compiling 251 source files to /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/classes
    [INFO]
    [INFO] --- android-maven-plugin:3.0.0:proguard (default-proguard) @ MotorwayCamWatch ---
    [INFO]
    [INFO] --- maven-resources-plugin:2.5:testResources (default-testResources) @ MotorwayCamWatch ---
    [debug] execute contextualize
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] skip non existing resourceDirectory /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/src/test/resources
    [INFO]
    [INFO] --- maven-compiler-plugin:2.3.2:testCompile (default-testCompile) @ MotorwayCamWatch ---
    [INFO] No sources to compile
    [INFO]
    [INFO] --- maven-surefire-plugin:2.12:test (default-test) @ MotorwayCamWatch ---
    [INFO] No tests to run.
    [INFO] Surefire report directory: /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/surefire-reports

    -------------------------------------------------------
    T E S T S
    -------------------------------------------------------

    Results :

    Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

    [INFO]
    [INFO] --- android-maven-plugin:3.0.0:dex (default-dex) @ MotorwayCamWatch ---
    [INFO] /opt/jdk1.6.0_33/jre/bin/java [-jar, /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/lib/dx.jar, --dex, --output=/srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/classes.dex, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/BarcodeScanner/target/BarcodeScanner-1.0.apklib, /srv/tiggzi/.m2/repository/org/apache/cordova/cordova/2.4.0/cordova-2.4.0.jar, /srv/tiggzi/.m2/repository/com/google/android/gcm/gcm/r3/gcm-r3.jar, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/classes]
    [INFO]
    [INFO] --- maven-jar-plugin:2.4:jar (default-jar) @ MotorwayCamWatch ---
    [INFO] Building jar: /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/MotorwayCamWatch-3.7.jar
    [INFO]
    [INFO] --- android-maven-plugin:3.0.0:apk (default-apk) @ MotorwayCamWatch ---
    [INFO] Copying dependency assets files to combined assets directory.
    [INFO] Copying local assets files to combined assets directory.
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt [package, -f, -M, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/AndroidManifest.xml, -S, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/res, -S, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res, --auto-add-overlay, -A, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/generated-sources/combined-assets/assets, -I, /srv/tiggzi/lib/android-sdk-linux_x86/platforms/android-8/android.jar, -F, /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/MotorwayCamWatch-3.7.ap]
    [INFO] /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt: /lib/libz.so.1: no version information available (required by /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt)
    [INFO] libpng error: Too many IDAT's found
    [INFO] ERROR: Failure processing PNG image /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/res/drawable/appicon.png
    [INFO] /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res/layout/capture.xml:217: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/shopper_icon').
    [INFO] /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res/layout-ldpi/capture.xml:217: error: Error: No resource found that matches the given name (at 'drawableLeft' with value '@drawable/shopper_icon').
    [INFO] /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res/layout/share.xml:41: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/share_via_barcode').
    [INFO] /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res/layout-land/share.xml:39: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/share_via_barcode').
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] MotorwayCamWatch-parent ........................... SUCCESS [0.265s]
    [INFO] barcode scanner ................................... SUCCESS [14.018s]
    [INFO] MotorwayCamWatch .................................. FAILURE [27.630s]
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 43.806s
    [INFO] Finished at: Wed Jul 03 18:34:42 UTC 2013
    [INFO] Final Memory: 15M/59M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.0.0:apk (default-apk) on project MotorwayCamWatch: MojoExecutionException: ANDROID-040-001: Could not execute: Command = /bin/sh -c cd /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch && /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt package -f -M /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/AndroidManifest.xml -S /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/res -S /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res --auto-add-overlay -A /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/generated-sources/combined-assets/assets -I /srv/tiggzi/lib/android-sdk-linux_x86/platforms/android-8/android.jar -F /srv/tiggzi/lib/jenkins/workspace/91850-android/54874/91850/android/MotorwayCamWatch/target/MotorwayCamWatch-3.7.ap, Result = 1 - [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/di...
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR] mvn -rf :MotorwayCamWatch
    Build step 'Execute shell' marked build as failure
    Finished: FAILURE

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Android Binary APK build failing

Hi Andy,

This PNG file (android/MotorwayCamWatch/res/drawable/appicon.png) was not correctly saved by the program that created it. Try re-saving it using an image editor such as Photoshop or similar.

Andy Parker
Posts: 0
Joined: Wed Mar 27, 2013 10:21 am

Android Binary APK build failing

Thanks Katya, this is really odd behaviour as I haven't changed that icon for quite some time....

But that did fix it :-)

thanks again.

Sorry for being hard work today.

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

Android Binary APK build failing

Hello, I have similar problem..
I was able to install .apk this mourning on my device, then do some minor changes to StartScreen and when trying to build .apk I got this error code.

Image

I follow instructions from above:

  • delete all source code from Andoid folder

  • undo all source changes,
    -tried again but got the same error.

    I shared with support, the app name is "distritofitness".

    I also send an email.

    Please help me with this!

    Regards

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Android Binary APK build failing

Alex, as you changed the app package name and the build now fails, switch to Source view. For the Android folder, select the “gear” icon, then ”Undo all source changes.” Try to export again. Let us know the result.

Return to “Issues”