Run Android platform error with "cordova-plugin-facebook4"

You can get it working by changing following things without rolling back to previous version (ionic and cordova users only)

<framework src="com.facebook.android:facebook-android-sdk:4+"/>
to
<framework src="com.facebook.android:facebook-android-sdk:4.26.0"/>
in plugin.xml of plugin located in /plugins/cordova-plugin-facebook4

and overwrite
compile "com.facebook.android:facebook-android-sdk:4.+"
with
compile "com.facebook.android:facebook-android-sdk:4.26.0"
both in /platforms/android/build.gradle and /platforms/android/project.properties in your cordova or ionic project.

15 Likes