I am getting these two error messages when trying to compile:
/Users/dericw/coding/myApplication/lfdate/android/app/build/intermediates/exploded-aar/com.andr
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.+"/>
my system already had 23 installed. from project panel, Application -> Open module setting (F4) -> application -> Properties tab. I had Compile Sdk Version Android 5.50 (lollipop). So I changed to API 23+ and it worked.
So I checked Application build.gradle changed
from compileSdkVersion 21
buildToolsVersion "23.0.3"
to
compileSdkVersion 'android-N'
buildToolsVersion "23.0.3"
so I"m guessing you can simply change compoileSdkVersion to your buildTollVersion.
I've fixed it removing the plugin:
cordova plugin remove cordova-plugin-facebook4
And installing it again from this commit:
cordova plugin add https://github.com/jeduan/cordova-plugin-facebook4\#aff9a08a86cc6c6a18019f7adc2896ddf97c11cd --save --variable APP_ID="YOUR_FB_APP_ID" --variable APP_NAME="YOUR_FB_APP_NAME"
vi platforms/android/project.properties
and changed from target=android-22 to target=android-23
cordova platform update android --save
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.
For Phonegap Build users, try this. It worked for me.
<plugin spec="https://github.com/jeduan/cordova-plugin-facebook4#aff9a08a86cc6c6a18019f7adc2896ddf97c11cd" source="git" >