Ionic cordova build android


When I run: ionic cordova build --release android (of course after add platform)

Show me this error…

I know that is something with Facebook about the id and name,
I already install the plugins of Facebook and ran this command :

ionic cordova plugin add cordova-plugin-facebook4 --variable APP_ID=“123456789” --variable APP_NAME=“myApplication”

ofcourse with my id app and name.

I try several times to remove and add the platform and build the project but still no working

any help?


Ah yes I ran into the same issue on a project. The solution for me was adding the following lines to /platforms/android/app/src/main/res/values/strings.xml

<string name="fb_app_id">123456789</string>
<string name="fb_app_name">michael.busby</string>

You can also try this solution to save digging through the platforms folder: