I installed cordova facebook4 plugin
cordova plugin add cordova-plugin-facebook4 --save --variable APP_ID="12345678910" --variable APP_NAME="My Application Name"
and when I try to build, it shows this error.
I never got this error till last week, but today when I want to update my app it shows that error. Any suggestion?
This seems to be a new issue with the facebook plugin.
Try changing
<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 replace com.facebook.android:facebook-android-sdk:4.+
with
com.facebook.android:facebook-android-sdk:4.26.0
both in /platforms/android/build.gradle
and /platforms/android/project.properties
in your cordova project.
This should be a temporary measure.