Unable to build for Android (iOS build working)

6 posts, 0 answers
  1. Blue
    Blue avatar
    11 posts
    Member since:
    Jun 2013

    Posted 20 Jun Link to this post

    Hi,

    I'm unable to "build and deploy" or just "build in cloud" on my app from Visual Studio.
    I always get the following output :

    01....\0y5zsfdk.nb3\Targets\Build.targets(212,3): error : Server build failed. Server output: Project "t.tmp.proj" (default targets):
    02.    Warning: Cannot include the following item(s) in your application: Plugins\statusbar-2.1.3\.gitignore;Plugins\statusbar-2.1.3\.jshintrc;Plugins\statusbar-2.1.3\.travis.yml. The build system treats items with a leading dot as hidden files or directories and does not process them. If you want to include these items in your application package, rename them and rebuild your app.
    03.    android Build Tooling revision 2016.06.13.2r
    04.    Build Tooling Hostname ab-linuxbpc-2
    05.    Warning: Note: Some input files use or override a deprecated API.
    06.    Warning: Note: Recompile with -Xlint:deprecation for details.
    07.    Warning: Note: Some input files use or override a deprecated API.
    08.    Warning: Note: Recompile with -Xlint:deprecation for details.
    09.    Warning: Note: Some input files use or override a deprecated API.
    10.    Warning: Note: Recompile with -Xlint:deprecation for details.
    11.    Warning: Unknown source file : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/iid/zzb$zza$zza;
    12.    Warning: Unknown source file : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/iid/zzb$zza;
    13.Unknown source file : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/iid/zzb;
    14.Unknown source file : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/iid/MessengerCompat$1;
    15.Unknown source file : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/iid/MessengerCompat$zza;
    16.Unknown source file : Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/android/gms/iid/MessengerCompat;
    17.Unknown source file : 6 errors; aborting
    18.    Warning: FAILURE: Build failed with an exception.
    19.    Warning: * What went wrong:
    20.    Warning: Execution failed for task ':dexArmv7Debug'.
    21.> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/usr/lib/jvm/java-8-oracle/bin/java'' finished with non-zero exit value 1
    22.    Warning: * Try:
    23.    Warning: Run with --stacktrace
    24.    Warning: option to get the stack trace. Run with --info or --debug option to get more log output.
    25.    Warning: /tmp/builds/9p5nia1Qy8JNLiV9mm/app/cordova/node_modules/q/q.js:126
    26.                    throw e;
    27.                    ^
    28.Error code 1 for command: /tmp/builds/9p5nia1Qy8JNLiV9mm/app/gradlew with args: cdvBuildDebug,-b,/tmp/builds/9p5nia1Qy8JNLiV9mm/app/build.gradle,-Dorg.gradle.daemon=true,-PcdvBuildArch=armv7,-PcdvBuildMultipleApks=true
    29.    Error: Build failed during execution
    30.    Error: 'Build failed with error code 1'
    31.Done building project "t.tmp.proj" -- FAILED.
    32..
    33.Done building project "Ionic-Tarsus-App.iceproj" -- FAILED.
    34. 
    35.Build FAILED.
  2. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 23 Jun Link to this post

    Hi,

    This build error is raised when there are plugins in the app are referencing different versions of the Google Player Services library. I took the liberty of checking our logs and I can see you're using the Pushwoosh plugin and a custom Google Analytics plugin. The Pushwoosh plugin utilizes version 8.4.0 of the Google Play Services APIs. Would you please check the play-services-analytics framework version targeted by the custom Google Analytics plugin. If it is defined with a '+', that means its getting the latest available version which is not 8.4.0 and you would have to change it as follows in the plugin.xml:
    <framework src="com.google.android.gms:play-services-analytics:8.4.0" />

    Let me know if you have more questions.

    Regards,
    Tina Stancheva
    Telerik
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
  3. Blue
    Blue avatar
    11 posts
    Member since:
    Jun 2013

    Posted 28 Jun in reply to Tina Stancheva Link to this post

    Thank you very much Tina!

     

    You were correct, the framework node had a '+' in it, changing it to '8.4.0' allowed the build for Android to succeed.

     

     

  4. Blue
    Blue avatar
    11 posts
    Member since:
    Jun 2013

    Posted 01 Jul Link to this post

    Hi Tina,

     

    On a different project I'm receiving a very similar error message. Can you please see if there is anything I'm doing wrong with this project ?

     

    Warning: Cannot include the following item(s) in your application: Plugins\cordova-plugin-dialogs-rel-1.2.1\.gitignore;Plugins\cordova-plugin-dialogs-rel-1.2.1\.jshintrc;Plugins\cordova-plugin-dialogs-rel-1.2.1\.travis.yml. The build system treats items with a leading dot as hidden files or directories and does not process them. If you want to include these items in your application package, rename them and rebuild your app.
        android Build Tooling revision 2016.06.29.2r
        Build Tooling Hostname ab-linuxbpc-2
        Warning: Note: Some input files use or override a deprecated API.
        Warning: Note: Recompile with -Xlint:deprecation for details.
        Warning: Note: Some input files use or override a deprecated API.
        Warning: Note: Recompile with -Xlint:deprecation for details.
        Warning: Unknown source file : warning: string 'menu_settings' has no default translation.
        Warning: Note: Some input files use or override a deprecated API.
        Warning: Note: Recompile with -Xlint:deprecation for details.
        Warning: Note: Some input files use unchecked or unsafe operations.
        Warning: Note: Recompile with -Xlint:unchecked for details.
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values/arrays.xml:3: Error: "country_codes" is not translated in "ar" (Arabic), "bg" (Bulgarian), "ca" (Catalan), "cs" (Czech), "da" (Danish), "de" (German), "el" (Greek), "es" (Spanish), "eu" (Basque), "fi" (Finnish), "fr" (French), "he" (Hebrew), "hi" (Hindi), "hu" (Hungarian), "id" (Indonesian), "it" (Italian), "iw" (Hebrew), "ja" (Japanese), "ko" (Korean), "nl" (Dutch), "pl" (Polish), "pt" (Portuguese), "ru" (Russian), "sk" (Slovak), "sl" (Slovenian), "sv" (Swedish), "tr" (Turkish), "zh-CN" (Chinese: China), "zh-TW" (Chinese: Taiwan) [MissingTranslation]
        Warning: <string-array name="country_codes">
        Warning: ~~~~~~~~~~~~~~~~~~~~
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values/strings.xml:3: Error: "app_name" is not translated in "ar" (Arabic), "bg" (Bulgarian), "ca" (Catalan), "cs" (Czech), "da" (Danish), "de" (German), "el" (Greek), "es" (Spanish), "eu" (Basque), "fi" (Finnish), "fr" (French), "he" (Hebrew), "hi" (Hindi), "hu" (Hungarian), "id" (Indonesian), "it" (Italian), "iw" (Hebrew), "ja" (Japanese), "ko" (Korean), "nl" (Dutch), "pl" (Polish), "pt" (Portuguese), "ru" (Russian), "sk" (Slovak), "sl" (Slovenian), "sv" (Swedish), "tr" (Turkish), "zh-CN" (Chinese: China), "zh-TW" (Chinese: Taiwan) [MissingTranslation]
        Warning: <string name="app_name">"Amrod"</string>
        Warning: ~~~~~~~~~~~~~~~
        Warning: Explanation for issues of type "MissingTranslation":
        Warning: If an application has more than one locale, then all the strings declared
        Warning: in one language should also be translated in all other languages.
        Warning: If the string should not be translated, you can add the attribute
        Warning: translatable="false" on the <string> element, or you can define all your
        Warning: non-translatable strings in a resource file called donottranslate.xml. Or,
        Warning: you can ignore the issue with a tools:ignore="MissingTranslation"
        Warning: attribute.
        Warning: By default this detector allows regions of a language to just provide a
        Warning: subset of the strings and fall back to the standard language strings. You
        Warning: can require all regions to provide a full translation by setting the
        Warning: environment variable ANDROID_LINT_COMPLETE_REGIONS.
        Warning: You can tell lint (and other tools) which language is the default language
        Warning: in your res/values/ folder by specifying tools:locale="languageCode" for
        Warning: the root <resources> element in your resource file. (The tools prefix
        Warning: refers to the namespace declaration http://schemas.android.com/tools.)
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-ar/strings.xml:64: Error: "menu_settings" is translated here but not found in default locale [ExtraTranslation]
        Warning: <string name="menu_settings">إعدادات</string>
        Warning: ~~~~~~~~~~~~~~~~~~~~
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-bg/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-ca/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-cs/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-da/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-de/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-el/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-es/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-eu/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-fi/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-fr/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-he/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-hi/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-hu/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-id/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-it/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-iw/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-ja/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-ko/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-nl/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-pl/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-pt/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-ru/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-sk/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-sl/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-sv/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-tr/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-zh-rCN/strings.xml:64: Also translated here
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/res/values-zh-rTW/strings.xml:64: Also translated here
        Warning: Explanation for issues of type "ExtraTranslation":
        Warning: If a string appears in a specific language translation file, but there is
        Warning: no corresponding string in the default locale, then this string is probably
        Warning: unused. (It's technically possible that your application is only intended
        Warning: to run in a specific locale, but it's still a good idea to provide a
        Warning: fallback.).
        Warning: Note that these strings can lead to crashes if the string is looked up on
        Warning: any locale not providing a translation, so it's important to clean them
        Warning: up.
        Warning: 3 errors, 0 warnings
        Warning: FAILURE:
        Warning: Build failed with an exception.
        Warning: * What went wrong:
        Warning: Execution failed for task ':lintVitalArmv7Release'.
        Warning: >
        Warning: Lint found fatal errors while assembling a release target.
        Warning: To proceed, either fix the issues identified by lint, or modify your build script as follows:
        Warning: ...
        Warning: android {
          lintOptions {
        Warning: checkReleaseBuilds false
        Warning: // Or, if you prefer, you can continue to check for errors in release builds,
        Warning: // but continue the build even when errors are found:
        Warning: abortOnError false
        Warning: }
        Warning: }
      ...
        Warning: * Try:
        Warning: Run with
        Warning: --stacktrace option to get the stack trace. Run with --info or
        Warning: --debug option to get more log output.
        Warning: /tmp/builds/efMQtMUQVK4CefwOYE/app/cordova/node_modules/q/q.js:126
                        throw e;
                        ^
    Error code 1 for command: /tmp/builds/efMQtMUQVK4CefwOYE/app/gradlew with args: cdvBuildRelease,-b,/tmp/builds/efMQtMUQVK4CefwOYE/app/build.gradle,-Dorg.gradle.daemon=true,-PcdvBuildArch=armv7,-PcdvBuildMultipleApks=true
        Error: Build failed during execution
        Error: 'Build failed with error code 1'
    Done building project "Amrod_App.tmp.proj" -- FAILED.
    .
    Done building project "Amrod-App.iceproj" -- FAILED.
     
    Build FAILED.

     

    Any assistance would be greatly appreciated !

  5. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 06 Jul Link to this post

    Hello,

    This stack trace seems to be related to a string localization issue that was available in an outdated version of the BarcodeScanner plugin. You seem to be using the same plugin and updating it to its latest version should resolve the issue. I checked our records and it seems that you were last able to successfully build the project. Please let me know if that is indeed the case.

    Also, in case you have urgent issues such as build failures I would recommend submitting them as support tickets so you can benefit from prompter and guaranteed response times.

    Regards,
    Tina Stancheva
    Telerik by Progress
     

    Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

     
  6. Blue
    Blue avatar
    11 posts
    Member since:
    Jun 2013

    Posted 12 Jul in reply to Tina Stancheva Link to this post

    Thank you very much Tina, you were right on point with your explanation above and our application now builds!!

     

     

Back to Top