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

APK Build Failing - IPA works fine

Hi

since logging on this afternoon and attempting to build my APK I am getting the

"Oh no! It wasn't supposed to happen but the build failed. " message.

I haven't altered the build since the last time (other than selecting a different theme) - I need to use the new IOS theme. However, I dont think its that as I changed the theme back again and it still fails.

I can however build an IPA file.......

Please help as I need to release a new version ASAP.

Here's the log:
Started by user anonymous
Building remotely on Tiggzi-git

Deleting project workspace... done

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

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

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

  • SOURCE_FILE_NAME=Motorway_Cam_Watch.zip

  • SOURCE_RELATIVE_PATH=./54874/75298/android

  • SRC_ZIP=./54874/75298/android/Motorway_Cam_Watch.zip
    ++ cut -d . -f1
    ++ echo Motorway_Cam_Watch.zip

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

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

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

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

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

  • cd ./54874/75298/android

  • mvn clean package
    [INFO] Scanning for projects...
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Build Order:
    [INFO]
    [INFO] Motorway_Cam_Watch-parent
    [INFO] barcode scanner
    [INFO] Motorway_Cam_Watch
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Motorway_Cam_Watch-parent 3.7-parent
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ Motorway_Cam_Watch-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/75298-android/54874/75298/android/BarcodeScanner/target/generated-sources/r, -M, /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/BarcodeScanner/AndroidManifest.xml, -S, /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/BarcodeScanner/res, --auto-add-overlay, -A, /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/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/75298-android/54874/75298/android/BarcodeScanner/src/main/resources
    [INFO] skip non existing resourceDirectory /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/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/75298-android/54874/75298/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/75298-android/54874/75298/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/75298-android/54874/75298/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/75298-android/54874/75298/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/75298-android/54874/75298/android/BarcodeScanner/AndroidManifest.xml, -S, /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/BarcodeScanner/res, --auto-add-overlay, -A, /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/BarcodeScanner/assets, -I, /srv/tiggzi/lib/android-sdk-linux_x86/platforms/android-10/android.jar, -F, /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/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/75298-android/54874/75298/android/BarcodeScanner/target/BarcodeScanner-1.0.apklib
    [INFO]
    [INFO] ------------------------------------------------------------------------
    [INFO] Building Motorway_Cam_Watch 3.7
    [INFO] ------------------------------------------------------------------------
    [INFO]
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ Motorway_Cam_Watch ---
    [INFO]
    [INFO] --- android-maven-plugin:3.0.0:generate-sources (default-generate-sources) @ Motorway_Cam_Watch ---
    [DEBUG] Expanding: /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/BarcodeScanner/target/BarcodeScanner-1.0.apklib into /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch/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/75298-android/54874/75298/android/Motorway_Cam_Watch/target/generated-sources/r, -M, /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch/AndroidManifest.xml, -S, /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch/res, -S, /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res, --auto-add-overlay, -A, /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch/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/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch/AndroidManifest.xml:27: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/appicon').
    [ERROR] Error when generating sources.
    org.apache.maven.plugin.MojoExecutionException:
    at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR(GenerateSourcesMojo.java:338)
    at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.execute(GenerateSourcesMojo.java:102)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    Caused by: com.jayway.maven.plugins.android.ExecutionException: ANDROID-040-001: Could not execute: Command = /bin/sh -c cd /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch && /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt package -m -J /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch/target/generated-sources/r -M /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch/AndroidManifest.xml -S /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch/res -S /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res --auto-add-overlay -A /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch/assets -I /srv/tiggzi/lib/android-sdk-linux_x86/platforms/android-8/android.jar, Result = 1
    at com.jayway.maven.plugins.android.CommandExecutor$Factory$1.executeCommand(CommandExecutor.java:215)
    at com.jayway.maven.plugins.android.phase01generatesources.GenerateSourcesMojo.generateR(GenerateSourcesMojo.java:336)
    ... 22 more
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO]
    [INFO] Motorway_Cam_Watch-parent ......................... SUCCESS [0.244s]
    [INFO] barcode scanner ................................... SUCCESS [13.430s]
    [INFO] Motorway_Cam_Watch ................................ FAILURE [1.074s]
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 16.361s
    [INFO] Finished at: Wed Jun 26 13:51:15 UTC 2013
    [INFO] Final Memory: 10M/39M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.0.0:generate-sources (default-generate-sources) on project Motorway_Cam_Watch: MojoExecutionException: ANDROID-040-001: Could not execute: Command = /bin/sh -c cd /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch && /srv/tiggzi/lib/android-sdk-linux_x86/platform-tools/aapt package -m -J /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch/target/generated-sources/r -M /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch/AndroidManifest.xml -S /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch/res -S /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch/target/unpack/apklibs/phonegap.plugins_BarcodeScanner_apklib_1.0/res --auto-add-overlay -A /srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/Motorway_Cam_Watch/assets -I /srv/tiggzi/lib/android-sdk-linux_x86/platforms/android-8/android.jar, 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 :Motorway_Cam_Watch
    Build step 'Execute shell' marked build as failure
    Finished: FAILURE

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

APK Build Failing - IPA works fine

Hello! Sorry about this problem. We're working on it. Should be fixed soon.

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

APK Build Failing - IPA works fine

Thanks Marina, appreciate the quick reply :-)

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

APK Build Failing - IPA works fine

Could you try to clear the cache and see if it helps?

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

APK Build Failing - IPA works fine

I've cleared the cache on Chrome, no good :-(
So I then tried a new install of Firefox - no good either I'm afraid. :-(

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

APK Build Failing - IPA works fine

You can also try to rename your project and Label (there shouldn't be any spaces) till we fix this issue.

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

APK Build Failing - IPA works fine

I removed all the spaces but alas, still no joy.
I'll await your fix - thank you ever so much for the quick replies - great support as always.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

APK Build Failing - IPA works fine

Ok, I'll update this post when we finish.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

APK Build Failing - IPA works fine

Looks like the problem is with appicon.png icon. You can also try one more thing - delete that icon from App Settings - Android binary and try again. Sorry for inconvenience and thank you for patience.

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

APK Build Failing - IPA works fine

not sure where that appicon.png comes from.
Any how, I deleted my app icon, tried to build but instantly got an error.
Then, re-added a new app icon, tried to build, same error that I sent you.

Error snippet:
/srv/tiggzi/lib/jenkins/workspace/75298-android/54874/75298/android/MotorwayCamWatch/AndroidManifest.xml:27: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/appicon').
[ERROR] Error when generating sources.

Heres my project page:
Image

Return to “Issues”