Facebookconnect.xml requested for changes not found

facebook doesn’t work in android
i’m getting this message when i try to build in android

config file res/values/facebookconnect.xml requested for changes not found at /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/res/values/facebookconnect.xml, ignoring

config file res/values/facebookconnect.xml requested for changes not found at /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/res/values/facebookconnect.xml, ignoring

ionic info


cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.19.2
    ionic (Ionic CLI) : 3.20.0

global packages:

    cordova (Cordova CLI) : 8.0.0

local packages:

    @ionic/app-scripts : 3.1.8
    Cordova Platforms  : android 7.1.1 ios 4.5.4
    Ionic Framework    : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 1.9.2
    ios-sim           : 6.1.2
    Node              : v8.11.1
    npm               : 5.6.0
    OS                : macOS High Sierra
    Xcode             : Xcode 9.2 Build version 9C40b

Environment Variables:

    ANDROID_HOME : /Users/anspireagency/Library/Android/sdk/

check your config.xml file and add:

<plugin name="cordova-plugin-facebook4" spec="^1.7.4">
        <variable name="APP_ID" value="appID" />
        <variable name="APP_NAME" value="appNAme" />
    </plugin>

after that

ionic cordova platform rm android
ionic cordova platform add android

I hope this help you

hi @rabhi thank you for reply
it’s exist in config.xml

    <plugin name="cordova-plugin-facebook4" spec="https://github.com/amritk/cordova-plugin-facebook4">
        <variable name="APP_ID" value="" />
        <variable name="APP_NAME" value="Doctory" />
    </plugin>

i deleted the id

ok so delete the old version of android

ionic cordova platform rm android

and

ionic cordova platform add android

i’m getting this error

[string/fb_app_id] /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/app/src/main/res/values/facebookconnect.xml   [string/fb_app_id] /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/app/src/main/res/values/strings.xml: Error: Duplicate resources
[string/fb_app_name] /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/app/src/main/res/values/facebookconnect.xml [string/fb_app_name] /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/app/src/main/res/values/strings.xml: Error: Duplicate resources
:app:mergeDebugResources FAILED

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':app:mergeDebugResources'.
>
[string/fb_app_id] /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/app/src/main/res/values/facebookconnect.xml   [string/fb_app_id] /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/app/src/main/res/values/strings.xml: Error: Duplicate resources
  [string/fb_app_name] /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/app/src/main/res/values/facebookconnect.xml       [string/fb_app_name] /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/app/src/main/res/values/strings.xml: Error: Duplicate resources

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 23s

21 actionable tasks: 21 executed
(node:6755) UnhandledPromiseRejectionWarning: Error: /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> [string/fb_app_id] /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/app/src/main/res/values/facebookconnect.xml [string/fb_app_id] /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/app/src/main/res/values/strings.xml: Error: Duplicate resources
  [string/fb_app_name] /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/app/src/main/res/values/facebookconnect.xml       [string/fb_app_name] /Users/anspireagency/Dropbox/Doctory_Project/platforms/android/app/src/main/res/values/strings.xml: Error: Duplicate resources

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

BUILD FAILED in 23s
    at ChildProcess.whenDone (/Users/anspireagency/Dropbox/Doctory_Project/platforms/android/cordova/node_modules/cordova-common/src/superspawn.js:169:23)
    at emitTwo (events.js:126:13)
    at ChildProcess.emit (events.js:214:7)
    at maybeClose (internal/child_process.js:925:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
(node:6755) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:6755) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

any help please …

I am having the same problem. There does not seem to be consensus on solving this issue.
Any help please.

Have you saw this error:

Error: Duplicate resources?

Just remove this code from your config file

        <config-file parent="/resources" target="./res/values/strings.xml">
            <string name="fb_app_id">APP_ID</string>
            <string name="fb_app_name">NAME</string>
        </config-file>

Or downgrade your ionic version to 3.20.1 and your angular to 6.1.8

This error occur with me when names of icons in path ‘resources\android\icon’ are incorrect.
solved by edit to correction name of icons