5 Replies Latest reply on Nov 22, 2016 8:47 AM by amirz72980144

    Android Build Error on cli-6.3.0

    amirz72980144

      No change to my config.xml recently.

      Last PhoneGap compile was last week.

      Suddenly Android Build Error is occurring with the following message in the build LOG.

      AppID: 2135908

       

      Anyone knows why this is suddenly a problem?

       

      Thx.

       

       

       

       

       

      Build Date: 2016-11-22 14:14:41 +0000

      Configuration on demand is an incubating feature.

      Incremental java compilation is an incubating feature.

      :preBuild UP-TO-DATE

      :preReleaseBuild UP-TO-DATE

      :checkReleaseManifest

      :preDebugBuild UP-TO-DATE

      :CordovaLib:preBuild UP-TO-DATE

      :CordovaLib:preDebugBuild UP-TO-DATE

      :CordovaLib:compileDebugNdk UP-TO-DATE

      :CordovaLib:compileLint

      :CordovaLib:copyDebugLint UP-TO-DATE

      :CordovaLib:mergeDebugProguardFiles

      :CordovaLib:packageDebugRenderscript UP-TO-DATE

      :CordovaLib:checkDebugManifest

      :CordovaLib:prepareDebugDependencies

      :CordovaLib:compileDebugRenderscript

      :CordovaLib:generateDebugResValues

      :CordovaLib:generateDebugResources

      :CordovaLib:packageDebugResources

      :CordovaLib:compileDebugAidl

      :CordovaLib:generateDebugBuildConfig

      :CordovaLib:mergeDebugShaders

      :CordovaLib:compileDebugShaders

      :CordovaLib:generateDebugAssets

      :CordovaLib:mergeDebugAssets

      :CordovaLib:processDebugManifest

      :CordovaLib:processDebugResources

      :CordovaLib:generateDebugSources

      :CordovaLib:incrementalDebugJavaCompilationSafeguard

      :CordovaLib:compileDebugJavaWithJavac

      :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      :CordovaLib:processDebugJavaRes UP-TO-DATE

      :CordovaLib:transformResourcesWithMergeJavaResForDebug

      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug

      :CordovaLib:mergeDebugJniLibFolders

      :CordovaLib:transformNative_libsWithMergeJniLibsForDebug

      :CordovaLib:transformNative_libsWithSyncJniLibsForDebug

      :CordovaLib:bundleDebug

      :CordovaLib:preReleaseBuild UP-TO-DATE

      :CordovaLib:compileReleaseNdk UP-TO-DATE

      :CordovaLib:copyReleaseLint UP-TO-DATE

      :CordovaLib:mergeReleaseProguardFiles

      :CordovaLib:packageReleaseRenderscript UP-TO-DATE

      :CordovaLib:checkReleaseManifest

      :CordovaLib:prepareReleaseDependencies

      :CordovaLib:compileReleaseRenderscript

      :CordovaLib:generateReleaseResValues

      :CordovaLib:generateReleaseResources

      :CordovaLib:packageReleaseResources

      :CordovaLib:compileReleaseAidl

      :CordovaLib:generateReleaseBuildConfig

      :CordovaLib:mergeReleaseShaders

      :CordovaLib:compileReleaseShaders

      :CordovaLib:generateReleaseAssets

      :CordovaLib:mergeReleaseAssets

      :CordovaLib:processReleaseManifest

      :CordovaLib:processReleaseResources

      :CordovaLib:generateReleaseSources

      :CordovaLib:incrementalReleaseJavaCompilationSafeguard

      :CordovaLib:compileReleaseJavaWithJavac

      :CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      :CordovaLib:processReleaseJavaRes UP-TO-DATE

      :CordovaLib:transformResourcesWithMergeJavaResForRelease

      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease

      :CordovaLib:mergeReleaseJniLibFolders

      :CordovaLib:transformNative_libsWithMergeJniLibsForRelease

      :CordovaLib:transformNative_libsWithSyncJniLibsForRelease

      :CordovaLib:bundleRelease

      :prepareBarcodescannerLibrary

      :prepareComAndroidSupportSupportCompat2500Library

      :prepareComAndroidSupportSupportCoreUi2500Library

      :prepareComAndroidSupportSupportCoreUtils2500Library

      :prepareComAndroidSupportSupportFragment2500Library

      :prepareComAndroidSupportSupportMediaCompat2500Library

      :prepareComAndroidSupportSupportV42500Library

      :prepareComGoogleAndroidGmsPlayServicesBase980Library

      :prepareComGoogleAndroidGmsPlayServicesBasement980Library

      :prepareComGoogleAndroidGmsPlayServicesLocation980Library

      :prepareComGoogleAndroidGmsPlayServicesTasks980Library

      :prepareProjectCordovaLibUnspecifiedReleaseLibrary

      :prepareReleaseDependencies

      :compileReleaseAidl

      :compileReleaseRenderscript

      :generateReleaseBuildConfig

      :mergeReleaseShaders

      :compileReleaseShaders

      :generateReleaseAssets

      :mergeReleaseAssets

      :generateReleaseResValues

      :generateReleaseResources

      :mergeReleaseResources

      :processReleaseManifest

      :processReleaseResources/project/res/xml/authenticator.xml:5:19-31: AAPT: No resource found that matches the given name (at 'icon' with value '@mipmap/icon').

       

      /project/res/xml/authenticator.xml:6:24-36: AAPT: No resource found that matches the given name (at 'smallIcon' with value '@mipmap/icon').

       

      FAILED

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':processReleaseResources'.

      > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/android-sdk/build-tools/24.0.1/aapt'' finished with non-zero exit value 1

       

      * 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: 3.788 secs

      Error: /project/gradlew: Command failed with exit code 1 Error output:

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      /project/res/xml/authenticator.xml:5:19-31: AAPT: No resource found that matches the given name (at 'icon' with value '@mipmap/icon').

       

      /project/res/xml/authenticator.xml:6:24-36: AAPT: No resource found that matches the given name (at 'smallIcon' with value '@mipmap/icon').

       

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':processReleaseResources'.

      > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/android-sdk/build-tools/24.0.1/aapt'' finished with non-zero exit value 1

       

      * Try:

      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

        at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)

        at emitTwo (events.js:106:13)

        at ChildProcess.emit (events.js:191:7)

        at maybeClose (internal/child_process.js:877:16)

        at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

        • 1. Re: Android Build Error on cli-6.3.0
          kerrishotts Adobe Community Professional

          I know you say that your config.xml hasn't changed, but can you share it (minus identifying/secret information)?

          • 2. Re: Android Build Error on cli-6.3.0
            amirz72980144 Level 1

            nothing secret about it :-)

            here it is. many items commented out , but still the same error.

             

            <?xml version="1.0" encoding="UTF-8" ?>

            <widget xmlns = "http://www.w3.org/ns/widgets"

                xmlns:gap = "http://phonegap.com/ns/1.0"

                xmlns:android = "http://schemas.android.com/apk/res/android"

                id        = "net.grdd.xxxxx"

             

             

                version   = "F.9.17">

             

             

              <!--

               versionCode = "305"

                android-versionCode="305"

             

             

                -->

             

             

              <name>XXXXXXXXXXXXXx</name>

             

             

              <description>

                XXXXXXXXXXXXXXXXXXXX

              </description>

             

             

              <author href="http://www.grdd.net" email="support@grdd.net">

                GRiDD Technologies CA, Inc.

              </author>

             

             

              <access origin="*" launch-external="yes" />

              <allow-intent href="*" />

              <allow-navigation href="*" />

             

             

              <activity android:alwaysRetainTaskState="true">

              </activity>

             

             

              <preference name="phonegap-version" value="cli-6.3.0" />

              <preference name="exit-on-suspend" value="false" />

              <preference name="android-targetSdkVersion" value="21" />

              <preference name="StatusBarOverlaysWebView" value="false" />

              <preference name="KeepRunning" value="true" />

              <access origin="*" subdomains="true" />

             

             

              <!--

              <icon src="splash.png" />

              <gap:plugin name="de.appplant.cordova.plugin.background-mode" source="npm" />

              <gap:plugin name="cordova-plugin-device" source="npm" />

              -->

             

             

              <gap:plugin name="cordova-plugin-dialogs" source="npm" />

             

              <!--

               <gap:plugin name="cordova-plugin-geolocation" source="npm" />

               <gap:plugin name="cordova-plugin-geolocation-ios9-fix" source="npm" />

            <gap:plugin name="phonegap-plugin-barcodescanner" source="npm" />

              -->

             

             

              <gap:plugin name="cordova-plugin-whitelist" source="npm" />

             

             

              <gap:plugin name="cordova-plugin-mauron85-background-geolocation" source="npm" />

             

             

              <gap:plugin name="cordova-plugin-statusbar-hide-on-startup" source="npm" />

              <gap:plugin name="cordova-plugin-network-information" source="npm" />

              <gap:plugin name="uk.co.workingedge.phonegap.plugin.launchnavigator" source="npm" />

             

             

              <gap:plugin name="cordova-plugin-background-mode" source="npm" />

             

             

              <gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance">

                <false />

              </gap:config-file>

             

             

              <gap:config-file platform="ios" parent="UIBackgroundModes">

                <array>

                  <string>location</string>

                  <string>fetch</string>

                </array>

              </gap:config-file>

             

             

              <gap:config-file platform="ios" parent="allowsBackgroundLocationUpdates">

                <string>YES</string>

              </gap:config-file>

             

             

              <gap:config-file platform="ios" parent="NSLocationAlwaysUsageDescription">

                <string>This app requires  access to your location in order to track your position</string>

              </gap:config-file>

             

             

              <gap:config-file platform="android" parent="/manifest/application">

                <activity android:launchMode="singleInstance" />

              </gap:config-file>

             

             

              <!--

             

             

              <icon src="icons/logo_57.png" gap:platform="ios" width="57" height="57" />

              <icon src="icons/logo_72.png" gap:platform="ios" width="72" height="72" />

              <icon src="icons/logo_114.png" gap:platform="ios" width="114" height="114" />

             

             

              <icon src="icons/logo_90.png"  width="90" height="90" />

              <icon src="icons/logo_110.png"  width="110" height="110" />

              <icon src="icons/logo_96.png"  width="96" height="96" />

              <icon src="icons/logo_144.png"  width="144" height="144" />

             

             

              retina iPad support: PhoneGap 2.5.0+ only

              <icon src="icons/logo_144.png" gap:platform="ios" width="144" height="144" />

            -->

              <icon src="splash.png" />

              <gap:splash src="splash.png" />

              <!--

              <gap:splash src="splash/splashIOS_320_480.png" gap:platform="ios" width="320" height="480" />

              <gap:splash src="splash/splashIOS_960_640.png" gap:platform="ios" width="640" height="960" />

             

             

              <gap:splash src="splash/splashIOS_1136_640.png" gap:platform="ios" width="640" height="1136" />

             

             

              <gap:splash src="splash/splashIOS_750_1334.png" gap:platform="ios" width="750" height="1334" />

              <gap:splash src="splash/splashIOS_1242_2208.png" gap:platform="ios" width="1242" height="2208" />

              <gap:splash src="splash/splashIOS_2208_1242.png" gap:platform="ios" width="2208" height="1242" />

             

             

              <gap:splash src="splash/splashIOS_768_1024.png" gap:platform="ios" width="768" height="1024" />

              <gap:splash src="splash/splashIOS_1024_768.png" gap:platform="ios" width="1024" height="768" />

             

             

              <gap:splash src="splash/splashIOS_1536_2048.png" gap:platform="ios" width="1536" height="2048" />

              <gap:splash src="splash/splashIOS_2048_1536.png" gap:platform="ios" width="2048" height="1536" />

             

             

              -->

            </widget>

            • 3. Re: Android Build Error on cli-6.3.0
              amirz72980144 Level 1

              not sure if it came through. just got an email it was rejected by moderators.

              • 4. Re: Android Build Error on cli-6.3.0
                ryanskihead Adobe Employee

                I see that you're not specifying versions for any of your plugins, which means that every time you build, the system will use the latest version of that plugin. Any time that a new version of those plugins are released, your build will use that new version which can introduce unexpected changes / failures. This is likely what happened here.

                 

                - check your 3rd party plugins and see if a new version has been released since you were building successfully (in the last week I think you said). try locking to the version before.

                 

                - the failure appears to occur in a file named res/xml/authenticator.xml. check your 3rd party plugins to see which one contributes that file, and how this recently changed.

                 

                We encourage locking all of your plugins to a version to prevent unexpected updates.

                1 person found this helpful
                • 5. Re: Android Build Error on cli-6.3.0
                  amirz72980144 Level 1

                  Thank you for NAILING it !

                   

                  I followed your instructions and narrowed it to a particular plugin. 

                  Locking in the version will be done from now on.  thank you again !