No resource found that matches the given name (at 'cardBackgroundColor' with value '?android:attr/colorBackgroundFloating') No resource found that matches the given name (at 'cardBackgroundColor' with value '?android:attr/colorBackgroundFloating') android android

No resource found that matches the given name (at 'cardBackgroundColor' with value '?android:attr/colorBackgroundFloating')


compile 'com.facebook.android:facebook-android-sdk:4.+' needs V-23

Change the facebook version SDK to 4.8.0 then it won't use that resource file. Then your code will be up & running/


I also had this issue. I solved by forcing an older version of the card view library as the issue is with that.

compile('com.android.support:cardview-v7:23.2.0') {    force = true}

The issue was with 23.2.1 of card view, the Facebook SDK uses this library.


If you are using the "cordova-plugin-facebook4" plugin, please remove the plugin from your project and pull it again (the latest version), then add it back to your project.

At the same time, please check the xml file, which is locate at yourCordovaProject/plugin/cordova-plugin-facebook4/plugin.xml around line No. 64, it must be 4.8.+ :

<framework src="com.facebook.android:facebook-android-sdk:4.8.+"/>