5 Replies Latest reply on Jul 4, 2017 8:35 AM by donniet90973580

    Phonegap Build Error

    donniet90973580

      Can anyone guide me thru this Phonegap Build Process, I keep getting error? I also have a copy of error log report.

       

      See Below:

      Build
      Date: 2017-06-28 10:51:40 +0000

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

      PLUGIN
      OUTPUT

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

      Fetching
      plugin "cordova-plugin-whitelist" via npm

      Installing
      "cordova-plugin-whitelist" at "1.3.2" 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.10.0" via npm

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

      Subproject
      Path: CordovaLib

      Fetching
      plugin "cordova-plugin-device" via npm

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

      Fetching
      plugin "cordova-plugin-inappbrowser" via npm

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

      Fetching
      plugin "cordova-plugin-splashscreen" via npm

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

      Fetching
      plugin "cordova-plugin-geolocation" via npm

      Installing
      "cordova-plugin-geolocation" at "2.4.3" 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.3" for android

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

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

      Subproject
      Path: CordovaLib

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

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

      Fetching
      plugin "cordova-plugin-media@3.0.0" via npm

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

      Fetching
      plugin "cordova-plugin-file" via npm

      Installing
      "cordova-plugin-file" at "4.3.3" 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"
      />"

       

      1. 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-plugin-googlemaps@1.3.9" via npm

      Installing
      "plugin.google.maps" at "1.3.9" for android

      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

      Fetching
      plugin "cordova-plugin-buildinfo@1.1.0" via npm

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

      Fetching
      plugin "cordova-plugin-vibration@2.1.4" via npm

      Installing
      "cordova-plugin-vibration" at "2.1.4" for android

      Fetching
      plugin "cordova-plugin-camera@2.4.0" via npm

      Installing
      "cordova-plugin-camera" at "2.4.0" for android

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

      Subproject
      Path: CordovaLib

      Fetching
      plugin "cordova-plugin-file-transfer@1.6.2" via npm

      Installing
      "cordova-plugin-file-transfer" at "1.6.2" for android

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

      Fetching
      plugin "cordova-plugin-mauron85-background-geolocation@2.2.5" via npm

      Installing
      "cordova-plugin-mauron85-background-geolocation" at "2.2.5"
      for android

      Subproject
      Path: CordovaLib

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

      COMPILE
      OUTPUT

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

      Subproject
      Path: CordovaLib

      Configuration
      on demand is an incubating feature.

      Incremental
      java compilation is an incubating feature.

      WARNING:
      Ignoring Android API artifact com.google.android:android:2.1_r1 for debug

      WARNING:
      Ignoring Android API artifact com.google.android:android:2.1_r1 for debug

      WARNING:
      Ignoring Android API artifact com.google.android:android:2.1_r1 for release

      WARNING:
      Ignoring Android API artifact com.google.android:android:2.1_r1 for release

      :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

      :prepareComAndroidSupportSupportCompat2600Alpha1Library

      :prepareComAndroidSupportSupportCoreUi2600Alpha1Library

      :prepareComAndroidSupportSupportCoreUtils2600Alpha1Library

      :prepareComAndroidSupportSupportFragment2600Alpha1Library

      :prepareComAndroidSupportSupportMediaCompat2600Alpha1Library

      :prepareComAndroidSupportSupportV132340Library

      :prepareComAndroidSupportSupportV42600Alpha1Library

      :prepareComGoogleAndroidGmsPlayServicesBase1100Library

      :prepareComGoogleAndroidGmsPlayServicesBasement1100Library

      :prepareComGoogleAndroidGmsPlayServicesGcm1026Library

      :prepareComGoogleAndroidGmsPlayServicesIid1026Library

      :prepareComGoogleAndroidGmsPlayServicesLocation1100Library

      :prepareComGoogleAndroidGmsPlayServicesMaps1100Library

      :prepareComGoogleAndroidGmsPlayServicesTasks1100Library

      :prepareMeLeolinShortcutBadger1112Library

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

      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.

      :compileDebugNdk
      UP-TO-DATE

      :compileDebugSources

      :mergeDebugShaders

      :compileDebugShaders

      :generateDebugAssets

      :mergeDebugAssets

      :transformClassesWithDexForDebug
      FAILED

       

      FAILURE:
      Build failed with an exception.

       

      *
      What went wrong:

      Execution
      failed for task ':transformClassesWithDexForDebug'.

      >
      com.android.build.api.transform.TransformException:
      com.android.ide.common.process.ProcessException:
      java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple
      dex files define Lcom/google/android/gms/iid/zzc;

       

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

       

      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.

       

      FAILURE:
      Build failed with an exception.

       

      *
      What went wrong:

      Execution
      failed for task ':transformClassesWithDexForDebug'.

      >
      com.android.build.api.transform.TransformException:
      com.android.ide.common.process.ProcessException:
      java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple
      dex files define Lcom/google/android/gms/iid/zzc;

       

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