cordova-plugin-facebook-connect / cordova-plugin-facebook-connect

Use the latest Facebook SDK in your Cordova and Ionic projects
Other
63 stars 90 forks source link

duplicate resources in facebookconnect.xml and strings.xml #107

Open moblizeitllc opened 2 years ago

moblizeitllc commented 2 years ago

my ionic info

`Ionic:

Ionic CLI : 6.18.1 (/usr/local/lib/node_modules/@ionic/cli) Ionic Framework : @ionic/angular 5.9.1 @angular-devkit/build-angular : 12.1.4 @angular-devkit/schematics : 12.2.13 @angular/cli : 12.1.4 @ionic/angular-toolkit : 4.0.0

Cordova:

Cordova CLI : 10.0.0 (cordova-lib@10.1.0) Cordova Platforms : android 9.1.0, ios 6.2.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, (and 15 other plugins)

Utility:

cordova-res : 0.15.3 native-run (update available: 1.5.0) : 1.3.0

System:

ios-deploy : 1.9.4 ios-sim : 8.0.2 NodeJS : v14.17.0 (/usr/local/bin/node) npm : 7.24.0 OS : macOS Monterey Xcode : Xcode 13.1 Build version 13A1030d`

and while doing android build i am getting

`* What went wrong: Execution failed for task ':app:mergeDebugResources'.

[string/fb_app_id] /Users/moblizeit/code-repo/apps/shreyaGhoshal/shreyaGhoshal/platforms/android/app/src/main/res/values/facebookconnect.xml [string/fb_app_id] /Users/moblizeit/code-repo/apps/shreyaGhoshal/shreyaGhoshal/platforms/android/app/src/main/res/values/strings.xml: Error: Duplicate resources [string/fb_app_name] /Users/moblizeit/code-repo/apps/shreyaGhoshal/shreyaGhoshal/platforms/android/app/src/main/res/values/facebookconnect.xml [string/fb_app_name] /Users/moblizeit/code-repo/apps/shreyaGhoshal/shreyaGhoshal/platforms/android/app/src/main/res/values/strings.xml: Error: Duplicate resources`

i have tried to manually delete the duplicate app_id and app_name entries from strings.xml but still get the same error,

vagnersabadi commented 2 years ago

Try https://stackoverflow.com/a/67818967/8228489