Currently, I am in the process of developing a Hybrid app using Ionic-2 on Ubuntu. I encountered an issue when trying to add Facebook login functionality to my app. After installing the Facebook plugin, the app build fails. However, if I remove the Facebook plugin, the app builds successfully. Any assistance with this matter would be greatly appreciated. Thank you.
The plugin that I installed:
ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID="123456789" --variable APP_NAME="myApplication"
Error message:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Failed to execute aapt
* 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 17s
FAILED
25 actionable tasks: 1 executed, 24 up-to-date
(node:30083) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: /mnt/Workspace/work/project/ionic 2/DrinkOrdering/platforms/android/gradlew: Command failed with exit code 1 Error output:
/mnt/Workspace/work/project/ionic 2/DrinkOrdering/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:42: AAPT: error: resource string/fb_app_id (aka drinkordering.com:string/fb_app_id) not found.
/mnt/Workspace/work/project/ionic 2/DrinkOrdering/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:45: AAPT: error: resource string/fb_app_name (aka drinkordering.com:string/fb_app_name) not found.
/mnt/Workspace/work/project/ionic 2/DrinkOrdering/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:49: AAPT: error: resource string/fb_app_name (aka drinkordering.com:string/fb_app_name) not found.
/mnt/Workspace/work/project/ionic 2/DrinkOrdering/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:42: error: resource string/fb_app_id (aka drinkordering.com:string/fb_app_id) not found.
/mnt/Workspace/work/project/ionic 2/DrinkOrdering/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:45: error: resource string/fb_app_name (aka drinkordering.com:string/fb_app_name) not found.
/mnt/Workspace/work/project/ionic 2/DrinkOrdering/platforms/android/app/build/intermediates/manifests/full/debug/AndroidManifest.xml:49: error: resource string/fb_app_name (aka drinkordering.com:string/fb_app_name) not found.
error: failed processing manifest.
Failed to execute aapt