4 Replies Latest reply on Jan 24, 2017 1:08 PM by kerrishotts

    Phonegap Build fail for Android builds

    huseinl9521971

      Hi there, I am trying to build an App using phonegap build and it seems to keep giving me the same error for Android builds. Here is the log.

       

      Build Date: 2017-01-22 21:12:52 +0000

      --------------------------------------------------------------------------------

      PLUGIN OUTPUT

      --------------------------------------------------------------------------------

      Fetching plugin "cordova-plugin-whitelist" via npm

      Installing "cordova-plugin-whitelist" at "1.3.1" for android

       

        This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.

      Fetching plugin "phonegap-plugin-push@1.5.3" via npm

      Installing "phonegap-plugin-push" at "1.5.3" for android

      Fetching plugin "com.paypal.cordova.mobilesdk" via npm

      Installing "com.paypal.cordova.mobilesdk" at "3.3.1" for android

      Fetching plugin "card.io.cordova.mobilesdk" via npm

      Installing "card.io.cordova.mobilesdk" at "2.1.0" for android

      Fetching plugin "cordova-plugin-device" via npm

      Installing "cordova-plugin-device" at "1.1.4" for android

      Fetching plugin "cordova-plugin-inappbrowser" via npm

      Installing "cordova-plugin-inappbrowser" at "1.6.1" for android

      Fetching plugin "cordova-plugin-splashscreen" via npm

      Installing "cordova-plugin-splashscreen" at "4.0.1" for android

      Fetching plugin "cordova-plugin-geolocation" via npm

      Installing "cordova-plugin-geolocation" at "2.4.1" for android

      Fetching plugin "cordova-plugin-compat" via npm

      Installing "cordova-plugin-compat" at "1.1.0" for android

      Fetching plugin "cordova-plugin-network-information" via npm

      Installing "cordova-plugin-network-information" at "1.3.1" for android

      Fetching plugin "cordova-plugin-request-location-accuracy" via npm

      Installing "cordova-plugin-request-location-accuracy" at "2.2.0" for android

      Fetching plugin "cordova-plugin-x-toast" via npm

      Installing "cordova-plugin-x-toast" at "2.5.2" for android

      Fetching plugin "cordova-plugin-fastrde-checkgps" via npm

      Installing "cordova-plugin-fastrde-checkgps" at "1.0.0" for android

      Dependent plugin "cordova-plugin-geolocation" already installed on android.

      Fetching plugin "https://github.com/rodrigo-martinezd/cordova-dialog-gps.git" via git clone

      Using shallow clone

      Repository "https://github.com/rodrigo-martinezd/cordova-dialog-gps.git" checked out to git ref "master" at "f110314".

      Installing "cl.rmd.cordova.dialoggps" at "0.0.2" for android

      Fetching plugin "https://github.com/razorpay/razorpay-cordova.git" via git clone

      Using shallow clone

      Repository "https://github.com/razorpay/razorpay-cordova.git" checked out to git ref "master" at "4d01a71".

      Installing "com.razorpay.cordova" at "0.13.1" for android

      Fetching plugin "cordova-plugin-media" via npm

      Installing "cordova-plugin-media" at "2.4.1" for android

      Fetching plugin "cordova-plugin-file" via npm

      Installing "cordova-plugin-file" at "4.3.1" for android

      Dependent plugin "cordova-plugin-compat" already installed on android.

       

      The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.

       

      If this is a new application no changes are required.

       

      If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:

       

        "<preference name="AndroidPersistentFileLocation" value="Compatibility" />"

       

      to config.xml in order for the application to find previously stored files.

        

      Dependent plugin "cordova-plugin-compat" already installed on android.

      Fetching plugin "cordova.plugins.diagnostic" via npm

      Installing "cordova.plugins.diagnostic" at "3.3.3" for android

      Fetching plugin "cordova-plugin-googlemaps" via npm

      Installing "cordova-plugin-googlemaps" at "1.4.0" for android

       

        In order to run this plugin, you need to obtain Google Maps API key for Android.

        Visit https://github.com/mapsplugin/cordova-plugin-googlemaps/wiki/Installation

       

        Check our release notes.

        https://github.com/wf9a5m75/phonegap-googlemaps-plugin/wiki/Release-Notes

      --------------------------------------------------------------------------------

      COMPILE OUTPUT

      --------------------------------------------------------------------------------

      Configuration on demand is an incubating feature.

      Incremental java compilation is an incubating feature.

      :preBuild UP-TO-DATE

      :preDebugBuild UP-TO-DATE

      :checkDebugManifest

      :preReleaseBuild 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

      :prepareComAndroidSupportAnimatedVectorDrawable2510Library

      :prepareComAndroidSupportAppcompatV72510Library

      :prepareComAndroidSupportSupportCompat2510Library

      :prepareComAndroidSupportSupportCoreUi2510Library

      :prepareComAndroidSupportSupportCoreUtils2510Library

      :prepareComAndroidSupportSupportFragment2510Library

      :prepareComAndroidSupportSupportMediaCompat2510Library

      :prepareComAndroidSupportSupportV132340Library

      :prepareComAndroidSupportSupportV42510Library

      :prepareComAndroidSupportSupportVectorDrawable2510Library

      :prepareComGoogleAndroidGmsPlayServicesBase1001Library

      :prepareComGoogleAndroidGmsPlayServicesBasement1001Library

      :prepareComGoogleAndroidGmsPlayServicesGcm1001Library

      :prepareComGoogleAndroidGmsPlayServicesIid1001Library

      :prepareComGoogleAndroidGmsPlayServicesLocation1001Library

      :prepareComGoogleAndroidGmsPlayServicesMaps980Library

      :prepareComGoogleAndroidGmsPlayServicesTasks1001Library

      :prepareComPaypalSdkPaypalAndroidSdk2146Library

      :prepareComRazorpayCheckout120Library

      :prepareIoCardAndroidSdk540Library

      :prepareProjectCordovaLibUnspecifiedDebugLibrary

      :prepareDebugDependencies

      :compileDebugAidl

      :compileDebugRenderscript

      :generateDebugBuildConfig

      :mergeDebugShaders

      :compileDebugShaders

      :generateDebugAssets

      :mergeDebugAssets

      :generateDebugResValues

      :generateDebugResources

      :mergeDebugResources

      :processDebugManifest

      :processDebugResources/project/build/intermediates/res/merged/debug/values-v24/values-v24. xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

        

      /project/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

        

      FAILED

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':processDebugResources'.

      > 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: 5.867 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/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Borderless.Colored'.

        

      /project/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Colored'.

        

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':processDebugResources'.

      > 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)

        • 2. Re: Phonegap Build fail for Android builds
          kerrishotts Adobe Community Professional

          This keeps popping up, so I added an announcement to the forum which might help others running into the same problem.

          • 3. Re: Phonegap Build fail for Android builds
            huseinl9521971 Level 1

            Hey, i followed the instructions with <preference name="phonegap-version" value="cli-6.4.0" /> but the error message still appears, but the log has changed:

             

            Build Date: 2017-01-23 19:32:04 +0000

            --------------------------------------------------------------------------------

            PLUGIN OUTPUT

            --------------------------------------------------------------------------------

            Fetching plugin "cordova-plugin-whitelist" via npm

            Installing "cordova-plugin-whitelist" at "1.3.1" for android

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 1.396 secs

             

              This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.

            Fetching plugin "phonegap-plugin-push@1.5.3" via npm

            Installing "phonegap-plugin-push" at "1.5.3" for android

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 1.463 secs

            Subproject Path: CordovaLib

            Fetching plugin "com.paypal.cordova.mobilesdk" via npm

            Installing "com.paypal.cordova.mobilesdk" at "3.3.1" for android

            Fetching plugin "card.io.cordova.mobilesdk" via npm

            Installing "card.io.cordova.mobilesdk" at "2.1.0" for android

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 3.218 secs

            Subproject Path: CordovaLib

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 1.364 secs

            Subproject Path: CordovaLib

            Fetching plugin "cordova-plugin-device" via npm

            Installing "cordova-plugin-device" at "1.1.4" for android

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 1.713 secs

            Fetching plugin "cordova-plugin-inappbrowser" via npm

            Installing "cordova-plugin-inappbrowser" at "1.6.1" for android

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 1.463 secs

            Fetching plugin "cordova-plugin-splashscreen" via npm

            Installing "cordova-plugin-splashscreen" at "4.0.1" for android

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 2.483 secs

            Fetching plugin "cordova-plugin-geolocation" via npm

            Installing "cordova-plugin-geolocation" at "2.4.1" for android

            Fetching plugin "cordova-plugin-compat" via npm

            Installing "cordova-plugin-compat" at "1.1.0" for android

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 1.76 secs

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 1.463 secs

            Fetching plugin "cordova-plugin-network-information" via npm

            Installing "cordova-plugin-network-information" at "1.3.1" for android

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 2.117 secs

            Fetching plugin "cordova-plugin-request-location-accuracy" via npm

            Installing "cordova-plugin-request-location-accuracy" at "2.2.0" for android

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 1.335 secs

            Subproject Path: CordovaLib

            Fetching plugin "cordova-plugin-x-toast" via npm

            Installing "cordova-plugin-x-toast" at "2.5.2" for android

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 2.113 secs

            Fetching plugin "cordova-plugin-fastrde-checkgps" via npm

            Installing "cordova-plugin-fastrde-checkgps" at "1.0.0" for android

            Dependent plugin "cordova-plugin-geolocation" already installed on android.

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 1.258 secs

            Fetching plugin "https://github.com/rodrigo-martinezd/cordova-dialog-gps.git" via git clone

            Using shallow clone

            Repository "https://github.com/rodrigo-martinezd/cordova-dialog-gps.git" checked out to git ref "master" at "f110314".

            Installing "cl.rmd.cordova.dialoggps" at "0.0.2" for android

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

             

            UNEXPECTED TOP-LEVEL EXCEPTION:

            java.io.FileNotFoundException: /tmp/gimlet/25568680/1918762/project/build/intermediates/exploded-aar/com.google.android. gms/play-services-maps/8.4.0/jars/classes.jar (No such file or directory)

            at java.util.zip.ZipFile.open(Native Method)

            at java.util.zip.ZipFile.<init>(ZipFile.java:219)

            at java.util.zip.ZipFile.<init>(ZipFile.java:149)

            at java.util.zip.ZipFile.<init>(ZipFile.java:163)

            at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:244)

            at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)

            at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)

            at com.android.dx.command.dexer.Main.processOne(Main.java:677)

            at com.android.dx.command.dexer.Main.processAllFiles(Main.java:574)

            at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)

            at com.android.dx.command.dexer.Main.run(Main.java:277)

            at com.android.dx.command.dexer.Main.main(Main.java:245)

            at com.android.dx.command.Main.main(Main.java:106)

            1 error; aborting

             

             

            trouble writing output: /tmp/gimlet/25568680/1918762/project/build/intermediates/pre-dexed/debug/com.google.andro id.gms-play-services-base-8.4.0_3f9367004278fddd15903240cc38bc0ff75a4f67.jar (No such file or directory)

             

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 8.827 secs

            Fetching plugin "https://github.com/razorpay/razorpay-cordova.git" via git clone

            Using shallow clone

            Repository "https://github.com/razorpay/razorpay-cordova.git" checked out to git ref "master" at "4d01a71".

            Installing "com.razorpay.cordova" at "0.13.1" for android

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 1.865 secs

            Subproject Path: CordovaLib

            Fetching plugin "cordova-plugin-media" via npm

            Installing "cordova-plugin-media" at "2.4.1" for android

            Fetching plugin "cordova-plugin-file" via npm

            Installing "cordova-plugin-file" at "4.3.1" for android

            Dependent plugin "cordova-plugin-compat" already installed on android.

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 1.459 secs

             

            The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.

             

            If this is a new application no changes are required.

             

            If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:

             

              "<preference name="AndroidPersistentFileLocation" value="Compatibility" />"

             

            to config.xml in order for the application to find previously stored files.

             

            Dependent plugin "cordova-plugin-compat" already installed on android.

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 1.261 secs

            Fetching plugin "cordova.plugins.diagnostic" via npm

            Installing "cordova.plugins.diagnostic" at "3.3.3" for android

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 1.464 secs

            Subproject Path: CordovaLib

            Fetching plugin "cordova-plugin-googlemaps" via npm

            Installing "cordova-plugin-googlemaps" at "1.4.0" for android

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :clean

            :CordovaLib:clean

             

            BUILD SUCCESSFUL

             

            Total time: 1.518 secs

            Subproject Path: CordovaLib

             

              In order to run this plugin, you need to obtain Google Maps API key for Android.

              Visit https://github.com/mapsplugin/cordova-plugin-googlemaps/wiki/Installation

             

              Check our release notes.

              https://github.com/wf9a5m75/phonegap-googlemaps-plugin/wiki/Release-Notes

            --------------------------------------------------------------------------------

            COMPILE OUTPUT

            --------------------------------------------------------------------------------

            Subproject Path: CordovaLib

            Configuration on demand is an incubating feature.

            Incremental java compilation is an incubating feature.

            :preBuild UP-TO-DATE

            :preDebugBuild UP-TO-DATE

            :checkDebugManifest

            :preReleaseBuild UP-TO-DATE

            :CordovaLib:preBuild UP-TO-DATE

            :CordovaLib:preDebugBuild UP-TO-DATE

            :CordovaLib:checkDebugManifest

            :CordovaLib:prepareDebugDependencies

            :CordovaLib:compileDebugAidl

            :CordovaLib:compileDebugNdk UP-TO-DATE

            :CordovaLib:compileLint

            :CordovaLib:copyDebugLint UP-TO-DATE

            :CordovaLib:mergeDebugShaders

            :CordovaLib:compileDebugShaders

            :CordovaLib:generateDebugAssets

            :CordovaLib:mergeDebugAssets

            :CordovaLib:mergeDebugProguardFiles

            :CordovaLib:packageDebugRenderscript UP-TO-DATE

            :CordovaLib:compileDebugRenderscript

            :CordovaLib:generateDebugResValues

            :CordovaLib:generateDebugResources

            :CordovaLib:packageDebugResources

            :CordovaLib:processDebugManifest

            :CordovaLib:generateDebugBuildConfig

            :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:checkReleaseManifest

            :CordovaLib:prepareReleaseDependencies

            :CordovaLib:compileReleaseAidl

            :CordovaLib:compileReleaseNdk UP-TO-DATE

            :CordovaLib:copyReleaseLint UP-TO-DATE

            :CordovaLib:mergeReleaseShaders

            :CordovaLib:compileReleaseShaders

            :CordovaLib:generateReleaseAssets

            :CordovaLib:mergeReleaseAssets

            :CordovaLib:mergeReleaseProguardFiles

            :CordovaLib:packageReleaseRenderscript UP-TO-DATE

            :CordovaLib:compileReleaseRenderscript

            :CordovaLib:generateReleaseResValues

            :CordovaLib:generateReleaseResources

            :CordovaLib:packageReleaseResources

            :CordovaLib:processReleaseManifest

            :CordovaLib:generateReleaseBuildConfig

            :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

            :prepareComAndroidSupportAnimatedVectorDrawable2510Library

            :prepareComAndroidSupportAppcompatV72510Library

            :prepareComAndroidSupportSupportCompat2510Library

            :prepareComAndroidSupportSupportCoreUi2510Library

            :prepareComAndroidSupportSupportCoreUtils2510Library

            :prepareComAndroidSupportSupportFragment2510Library

            :prepareComAndroidSupportSupportMediaCompat2510Library

            :prepareComAndroidSupportSupportV132340Library

            :prepareComAndroidSupportSupportV42510Library

            :prepareComAndroidSupportSupportVectorDrawable2510Library

            :prepareComGoogleAndroidGmsPlayServicesBase1001Library

            :prepareComGoogleAndroidGmsPlayServicesBasement1001Library

            :prepareComGoogleAndroidGmsPlayServicesGcm1001Library

            :prepareComGoogleAndroidGmsPlayServicesIid1001Library

            :prepareComGoogleAndroidGmsPlayServicesLocation1001Library

            :prepareComGoogleAndroidGmsPlayServicesMaps980Library

            :prepareComGoogleAndroidGmsPlayServicesTasks1001Library

            :prepareComPaypalSdkPaypalAndroidSdk2146Library

            :prepareComRazorpayCheckout120Library

            :prepareIoCardAndroidSdk540Library

            :prepareProjectCordovaLibUnspecifiedDebugLibrary

            :prepareDebugDependencies

            :compileDebugAidl

            :compileDebugRenderscript

            :generateDebugBuildConfig

            :generateDebugResValues

            :generateDebugResources

            :mergeDebugResources

            :processDebugManifest

            :processDebugResourcesWarning: AndroidManifest.xml already defines debuggable (in http://schemas.android.com/apk/res/android); using existing value in manifest.

             

             

            :generateDebugSources

            :incrementalDebugJavaCompilationSafeguard

            :compileDebugJavaWithJavac

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

            /project/src/plugin/google/maps/PluginCircle.java:28: error: cannot access AbstractSafeParcelable

              circleOptions.center(new LatLng(center.getDouble("lat"), center.getDouble("lng")));

              ^

              class file for com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable not found

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

            Note: Recompile with -Xlint:deprecation for details.

            Note: Some input files use unchecked or unsafe operations.

            Note: Recompile with -Xlint:unchecked for details.

            1 error

            :compileDebugJavaWithJavac FAILED

             

            FAILURE: Build failed with an exception.

             

             

            * What went wrong:

            Execution failed for task ':compileDebugJavaWithJavac'.

            > Compilation failed; see the compiler error output for details.

             

            * 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: 7.303 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.

            Warning: AndroidManifest.xml already defines debuggable (in http://schemas.android.com/apk/res/android); using existing value in manifest.

             

            /project/src/plugin/google/maps/PluginCircle.java:28: error: cannot access AbstractSafeParcelable

              circleOptions.center(new LatLng(center.getDouble("lat"), center.getDouble("lng")));

              ^

              class file for com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable not found

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

            Note: Recompile with -Xlint:deprecation for details.

            Note: Some input files use unchecked or unsafe operations.

            Note: Recompile with -Xlint:unchecked for details.

            1 error

             

            FAILURE: Build failed with an exception.

             

            * What went wrong:

            Execution failed for task ':compileDebugJavaWithJavac'.

            > Compilation failed; see the compiler error output for details.

             

            * 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)

            • 4. Re: Phonegap Build fail for Android builds
              kerrishotts Adobe Community Professional

              Make sure to update all your plugins to their most recent version. Double check, also, that all your plugins are compatible with a newer version of cordova-android. My suggestion is to remove all plugins, and start adding them back, one by one until you encounter a failure. Then you know which plugin(s) you may need to remove or find replacements for.