2 Replies Latest reply on Oct 4, 2016 12:12 PM by KnoxArg

    Conflict beetween cordova-plugin-facebook4 & cordova-plugin-facebook4 phonegap-plugin-push

    KnoxArg

      Hello,

       

      I have been using Phonegap build for a couple of years and it's a great tool. This is the first time that i cannot figure out what's going on.

       

      if I add the following plugins one at a time the build is successfull but if I put the together the build fails

       

      1. cordova-plugin-facebook4
      2. phonegap-plugin-push

       

      Here is my config.xml

       

       

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

      <widget id="com.x.x" version="1.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0" versionCode="1">

        <name>X</name>

        <description>

          Aplicación Móvil del Lider en Venta Electrónica

        </description>

        <author email="x@gmail.com" href="http://www.x.com.ar/">

      x

        </author>

        <author href="http://www.x.com.ar/" email="x@gmail.com">

      x

        </author>

        <content src="index.html"/>

        <access origin="*"/>

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

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

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

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

        <preference name="BackupWebStorage" value="none"/>

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

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

        <icon src="icon.png" />

        <icon src="res/icon/android/icon-36-ldpi.png" gap:platform="android" gap:qualifier="ldpi"/>

        <icon src="res/icon/android/icon-48-mdpi.png" gap:platform="android" gap:qualifier="mdpi"/>

        <icon src="res/icon/android/icon-72-hdpi.png" gap:platform="android" gap:qualifier="hdpi"/>

        <icon src="res/icon/android/icon-96-xhdpi.png" gap:platform="android" gap:qualifier="xhdpi"/>

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

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

        <icon src="res/icon/ios/icon-57-2x.png" gap:platform="ios" width="114" height="114"/>

        <icon src="res/icon/ios/icon-72-2x.png" gap:platform="ios" width="144" height="144"/>

        <icon src="res/icon/ios/icon-certify-76.png" gap:platform="ios" width="76" height="76"/>

        <icon src="res/icon/ios/icon-certify-120.png" gap:platform="ios" width="120" height="120"/>

        <icon src="res/icon/ios/icon-certify-152.png" gap:platform="ios" width="152" height="152"/>

       

       

        <preference name="SplashScreen" value="none"/>

       

       

        <!-- Define app splash screen for each platform. -->

        <gap:splash src="res/screen/android/screen-ldpi-portrait.png"       gap:platform="android" gap:qualifier="port-ldpi" />

        <gap:splash src="res/screen/android/screen-mdpi-portrait.png"       gap:platform="android" gap:qualifier="port-mdpi" />

        <gap:splash src="res/screen/android/screen-hdpi-portrait.png"       gap:platform="android" gap:qualifier="port-hdpi" />

        <gap:splash src="res/screen/android/screen-xhdpi-portrait.png"      gap:platform="android" gap:qualifier="port-xhdpi" />

        <gap:splash src="res/screen/blackberry/screen-225.png"              gap:platform="blackberry" />

        <gap:splash src="res/screen/ios/screen-iphone-portrait.png"         gap:platform="ios"     width="320" height="480" />

        <gap:splash src="res/screen/ios/screen-iphone-portrait-2x.png"      gap:platform="ios"     width="640" height="960" />

        <gap:splash src="res/screen/ios/screen-iphone-portrait-568h-2x.png" gap:platform="ios"     width="640" height="1136" />

        <gap:splash src="res/screen/ios/screen-ipad-portrait.png"           gap:platform="ios"     width="768" height="1024" />

        <gap:splash src="res/screen/ios/screen-ipad-landscape.png"          gap:platform="ios"     width="1024" height="768" />

        <gap:splash src="res/screen/windows-phone/screen-portrait.jpg"      gap:platform="winphone" />

       

       

       

       

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

        <feature name="StatusBar">

          <param name="ios-package" value="CDVStatusBar" onload="true"/>

        </feature>

       

       

        <access origin="*"/>

        <!-- Added the following intents to support the removal of whitelist code from base cordova to a plugin -->

        <!-- Whitelist configuration. Refer to https://cordova.apache.org/docs/en/edge/guide_appdev_whitelist_index.md.html -->

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

        <allow-intent href="http://*/*"/>

        <allow-intent href="https://*/*"/>

        <allow-intent href="tel:*"/>

        <allow-intent href="sms:*"/>

        <allow-intent href="mailto:*"/>

        <allow-intent href="geo:*"/>

        <platform name="android">

          <allow-intent href="market:*"/>

        </platform>

        <platform name="ios">

          <allow-intent href="itms:*"/>

          <allow-intent href="itms-apps:*"/>

        </platform>

       

       

        <plugin name="com.telerik.plugins.nativepagetransitions" source="npm"/>

       

       

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

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

       

       

       

       

       

       

        <gap:plugin name="cordova-plugin-facebook4" source="npm" version="1.7.4">

          <param name="APP_ID" value="X" />

          <param name="APP_NAME" value="X" />

        </gap:plugin>

       

       

        <gap:plugin name="phonegap-plugin-push" source="npm" version="1.5.3" >

          <param name="SENDER_ID" value="X" />

        </gap:plugin>

        <gap:plugin name="org.apache.cordova.device" />

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

        <gap:plugin name="ionic-plugin-keyboard" version="2.1.0" source="npm"/>

       

       

       

       

       

       

       

       

       

       

      </widget>

       

       

      And the log error is the following. Can someone help me? Thanks in advance

       

      Build Date: 2016-10-01 18:06:18 +0000

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

      PLUGIN OUTPUT

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

      Installing "org.apache.cordova.device" at "0.3.0" for android

      Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.

      Fetching plugin "cordova-plugin-whitelist@1.2.2" via npm

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

      Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.

       

        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 "cordova-plugin-x-socialsharing" via npm

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

      Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.

      Fetching plugin "cordova-plugin-inappbrowser" via npm

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

      Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.

      Fetching plugin "cordova-plugin-facebook4@1.7.4" via npm

      Installing "cordova-plugin-facebook4" at "1.7.4" for android

      Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.

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

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

      Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.

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

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

      Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.

      Fetching plugin "ionic-plugin-keyboard@2.1.0" via npm

      Installing "ionic-plugin-keyboard" at "2.1.0" for android

      Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.

      Fetching plugin "com.telerik.plugins.nativepagetransitions" via npm

      Installing "com.telerik.plugins.nativepagetransitions" at "0.6.5" for android

      Using this version of Cordova with older version of cordova-android is being deprecated. Consider upgrading to cordova-android@5.0.0 or newer.

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

      COMPILE OUTPUT

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

      Build option --'' not recognized (ignoring).

      Running: /project/gradlew cdvBuildDebug -b /project/build.gradle -Dorg.gradle.daemon=true -PcdvBuildMultipleApks=false -PcdvVersionCode=1

      Configuration on demand is an incubating feature.

      :preBuild

      :compileDebugNdk

      :preDebugBuild

      :checkDebugManifest

      :preReleaseBuild

      :CordovaLib:compileLint

      :CordovaLib:copyDebugLint UP-TO-DATE

      :CordovaLib:mergeDebugProguardFiles

      :CordovaLib:preBuild

      :CordovaLib:preDebugBuild

      :CordovaLib:checkDebugManifest

      :CordovaLib:prepareDebugDependencies

      :CordovaLib:compileDebugAidl

      :CordovaLib:compileDebugRenderscript

      :CordovaLib:generateDebugBuildConfig

      :CordovaLib:generateDebugAssets UP-TO-DATE

      :CordovaLib:mergeDebugAssets

      :CordovaLib:generateDebugResValues

      :CordovaLib:generateDebugResources

      :CordovaLib:packageDebugResources

      :CordovaLib:processDebugManifest

      :CordovaLib:processDebugResources

      :CordovaLib:generateDebugSources

      :CordovaLib:compileDebugJavaNote: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

       

      :CordovaLib:processDebugJavaRes UP-TO-DATE

      :CordovaLib:packageDebugJar

      :CordovaLib:compileDebugNdk

      :CordovaLib:packageDebugJniLibs UP-TO-DATE

      :CordovaLib:packageDebugLocalJar UP-TO-DATE

      :CordovaLib:packageDebugRenderscript UP-TO-DATE

      :CordovaLib:bundleDebug

      :CordovaLib:copyReleaseLint UP-TO-DATE

      :CordovaLib:mergeReleaseProguardFiles

      :CordovaLib:preReleaseBuild

      :CordovaLib:checkReleaseManifest

      :CordovaLib:prepareReleaseDependencies

      :CordovaLib:compileReleaseAidl

      :CordovaLib:compileReleaseRenderscript

      :CordovaLib:generateReleaseBuildConfig

      :CordovaLib:generateReleaseAssets UP-TO-DATE

      :CordovaLib:mergeReleaseAssets

      :CordovaLib:generateReleaseResValues

      :CordovaLib:generateReleaseResources

      :CordovaLib:packageReleaseResources

      :CordovaLib:processReleaseManifest

      :CordovaLib:processReleaseResources

      :CordovaLib:generateReleaseSources

      :CordovaLib:compileReleaseJavaNote: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

       

      :CordovaLib:processReleaseJavaRes UP-TO-DATE

      :CordovaLib:packageReleaseJar

      :CordovaLib:compileReleaseNdk

      :CordovaLib:packageReleaseJniLibs UP-TO-DATE

      :CordovaLib:packageReleaseLocalJar UP-TO-DATE

      :CordovaLib:packageReleaseRenderscript UP-TO-DATE

      :CordovaLib:bundleRelease

      :prepareComAndroidSupportCardviewV72340Library

      :prepareComAndroidSupportCustomtabs2340Library

      :prepareComAndroidSupportSupportV132340Library

      :prepareComAndroidSupportSupportV42340Library

      :prepareComFacebookAndroidFacebookAndroidSdk4141Library

      :prepareComGoogleAndroidGmsPlayServicesBase940Library

      :prepareComGoogleAndroidGmsPlayServicesBasement940Library

      :prepareComGoogleAndroidGmsPlayServicesGcm940Library

      :prepareComGoogleAndroidGmsPlayServicesIid940Library

      :prepareComGoogleAndroidGmsPlayServicesTasks940Library

      :prepareProjectCordovaLibUnspecifiedDebugLibrary

      :prepareDebugDependencies

      :compileDebugAidl

      :compileDebugRenderscript

      :generateDebugBuildConfig

      :generateDebugAssets UP-TO-DATE

      :mergeDebugAssets

      :generateDebugResValues

      :generateDebugResources

      :mergeDebugResources

      :processDebugManifest

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

      Failed to generate resource table for split ''

      /project/build/intermediates/res/debug/values-v23/values.xml:6: error: Error: No resource found that matches the given name (at 'cardBackgroundColor' with value '?android:attr/colorBackgroundFloating').

       

      FAILED

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':processDebugResources'.

      > com.android.ide.common.internal.LoggedErrorException: Failed to run command:

        /android-sdk/build-tools/24.0.1/aapt package -f --no-crunch -I /android-sdk/platforms/android-22/android.jar -M /project/build/intermediates/manifests/full/debug/AndroidManifest.xml -S /project/build/intermediates/res/debug -A /project/build/intermediates/assets/debug -m -J /project/build/generated/source/r/debug -F /project/build/intermediates/res/resources-debug.ap_ --debug-mode --custom-package com.rii.test -0 apk --output-text-symbols /project/build/intermediates/symbols/debug

        Error Code:

        1

        Output:

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

        Failed to generate resource table for split ''

        /project/build/intermediates/res/debug/values-v23/values.xml:6: error: Error: No resource found that matches the given name (at 'cardBackgroundColor' with value '?android:attr/colorBackgroundFloating').

       

       

       

      * 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.751 secs

       

      /project/cordova/node_modules/q/q.js:126

        throw e;

        ^

      Error code 1 for command: /project/gradlew with args: cdvBuildDebug,-b,/project/build.gradle,-Dorg.gradle.daemon=true,-PcdvBuildMultipleApks=fa lse,-PcdvVersionCode=1