How to solve duplicate resources ionic facebook login?

my application has worked with facebook4 login, but by removing and re-adding the facebook4 plugin with the variables it has generated a mess in my application since it does not build well on the android platform.

cli packages: (/Users/user/Desktop/home-made-repo/node_modules)

@ionic/cli-utils  : 1.19.3
ionic (Ionic CLI) : 3.20.1

global packages:

cordova (Cordova CLI) : 8.0.0

local packages:

@ionic/app-scripts : 3.2.4
Cordova Platforms  : android 6.4.0 ios 4.5.5
Ionic Framework    : ionic-angular 3.9.2


Android SDK Tools : 26.1.1
Node              : v8.15.0
npm               : 6.4.1
OS                : macOS
Xcode             : Xcode 10.2.1 Build version 10E1001

Environment Variables:

ANDROID_HOME : /Users/user/Library/Android/sdk/


backend : pro

try to manually add the variables to the platforms / android / res / values / string as suggested in

but this only brought me another problem, now What went wrong: the execution failed for the task ‘: mergeDebugResources’.

>ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="XXXXXXXX" --variable APP_NAME="XXXXXXXX"

>ionic cordova build android

I expected to build android successful and I got error

FAILURE: Build failed with an exception.

* What went wrong: Execution failed for task ':mergeDebugResources'.
> [string/fb_app_id] /Users/user/Desktop/home-made-repo/platforms/android/res/values/facebookconnect.xml [string/fb_app_id] /Users/user/Desktop/home-made-repo/platforms/android/res/values/strings.xml: Error: Duplicate resources [string/fb_app_name] /Users/user/Desktop/home-made-repo/platforms/android/res/values/facebookconnect.xml [string/fb_app_name] /Users/user/Desktop/home-made-repo/platforms/android/res/values/strings.xml: Error: Duplicate resources