2 Replies Latest reply on Apr 28, 2018 12:35 PM by stoneh8305749

    Build error CLI-7.1.0 Help Please.

    wsd26012329 Level 1

      My config.xml

       

      <preference name='phonegap-version' value='cli-7.1.0' />

          <preference name='pgb-builder-version' value='1' />

          <preference name="android-build-tool" value="gradle"/>    

          <preference name="android-minSdkVersion" value="17"/>  

        

          <platform name="android" />      

          <plugin name="cordova-plugin-google-analytics" source="npm" />

          <plugin name="cordova-plugin-admobpro" source="npm"/>        

          <plugin name="cordova-plugin-inappbrowser" source="npm"/>    

          <plugin name="cordova-plugin-x-socialsharing" source="npm"/>

          <plugin name="cordova-plugin-media" source="npm"/>   

          <plugin name="cordova-plugin-customurlscheme" source="npm">

              <param name="URL_SCHEME" value="myapp"/>

          </plugin>    

       

       

      My Log file

       

      Build Date: 2018-04-16 18:19:17 +0000

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

      PLUGIN OUTPUT

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

      Fetching plugin "cordova-plugin-google-analytics" via npm

      Installing "cordova-plugin-google-analytics" at "1.8.3" for android

      Subproject Path: CordovaLib

      Fetching plugin "cordova-plugin-admobpro" via npm

      Installing "cordova-plugin-admobpro" at "2.31.4" for android

      Fetching plugin "cordova-plugin-extension" via npm

      Installing "cordova-plugin-extension" at "1.5.4" for android

      Subproject Path: CordovaLib

      Subproject Path: CordovaLib

      Fetching plugin "cordova-plugin-inappbrowser" via npm

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

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

      Installing "cordova-plugin-x-socialsharing" at "5.3.2" for android

      Fetching plugin "es6-promise-plugin@^4.1.0" via npm

      Installing "es6-promise-plugin" at "4.2.2" for android

      Subproject Path: CordovaLib

      Fetching plugin "cordova-plugin-media" via npm

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

      Fetching plugin "cordova-plugin-file@^6.0.0" via npm

      Installing "cordova-plugin-file" at "6.0.1" for 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.

      Fetching plugin "cordova-plugin-customurlscheme" via npm

      Installing "cordova-plugin-customurlscheme" at "4.3.0" for android

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

      COMPILE OUTPUT

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

      Running command: /opt/gradle/gradle-4.1/bin/gradle -p /project wrapper -b /project/wrapper.gradle

      :wrapper

       

      BUILD SUCCESSFUL in 1s

      1 actionable task: 1 executed

      Command finished with error code 0: /opt/gradle/gradle-4.1/bin/gradle -p,/project,wrapper,-b,/project/wrapper.gradle

      Subproject Path: CordovaLib

      Running command: /project/gradlew cdvBuildDebug -b /project/build.gradle -Dorg.gradle.daemon=true -Dorg.gradle.jvmargs=-Xmx2048m -Pandroid.useDeprecatedNdk=true

      The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.

      at build_4wf6svgtth86a1vwcun8bq6yq.run(/project/build.gradle:142)

      The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0.

      Incremental java compilation is an incubating feature.

      The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead.

      :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

      :prepareAndroidArchLifecycleRuntime100Library

      :prepareComAndroidSupportCustomtabs2610Library

      :prepareComAndroidSupportSupportCompat2610Library

      :prepareComAndroidSupportSupportCoreUi2610Library

      :prepareComAndroidSupportSupportCoreUtils2610Library

      :prepareComAndroidSupportSupportFragment2610Library

      :prepareComAndroidSupportSupportMediaCompat2610Library

      :prepareComAndroidSupportSupportV42610Library

      :prepareComGoogleAndroidGmsPlayServicesAds1500Library

      :prepareComGoogleAndroidGmsPlayServicesAdsBase1500Library

      :prepareComGoogleAndroidGmsPlayServicesAdsIdentifier1500Library

      :prepareComGoogleAndroidGmsPlayServicesAdsLite1500Library

      :prepareComGoogleAndroidGmsPlayServicesAnalytics1500Library

      :prepareComGoogleAndroidGmsPlayServicesAnalyticsImpl1500Library

      :prepareComGoogleAndroidGmsPlayServicesBase1500Library

      :prepareComGoogleAndroidGmsPlayServicesBasement1500Library

      :prepareComGoogleAndroidGmsPlayServicesGass1500Library

      :prepareComGoogleAndroidGmsPlayServicesMeasurementBase1500Library

      :prepareComGoogleAndroidGmsPlayServicesStats1500Library

      :prepareComGoogleAndroidGmsPlayServicesTasks1500Library

      :prepareOrgApacheCordovaCordovaLib630DebugLibrary

      :prepareDebugDependencies

      :compileDebugAidl

      :compileDebugRenderscript

      :generateDebugBuildConfig

      :generateDebugResValues

      :generateDebugResources

      :mergeDebugResources

      :processDebugManifest

      :processDebugResources FAILED

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':processDebugResources'.

      > Error: more than one library with package name 'com.google.android.gms'

       

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

      Command finished with error code 1: /project/gradlew cdvBuildDebug,-b,/project/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx 2048m,-Pandroid.useDeprecatedNdk=true

      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.

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':processDebugResources'.

      > Error: more than one library with package name 'com.google.android.gms'

       

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