# Ionic cordova build android

**URL:** <https://forum.ionicframework.com/t/ionic-cordova-build-android/143628>\
**Category:** Ionic Framework\
**Created:** [October 3, 2018, 10:41pm UTC](https://forum.ionicframework.com/t/ionic-cordova-build-android/143628 "2018-10-03T22:41:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Motero69](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/motero69/32/123290_2.png) [@Motero69](https://forum.ionicframework.com/u/Motero69)\
**Post date:** [October 3, 2018, 10:41pm UTC](https://forum.ionicframework.com/t/ionic-cordova-build-android/143628/1 "2018-10-03T22:41:46Z")

</div>

Hi

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

Show me this error…

 ![](https://udemy-images.s3.amazonaws.com:443/redactor/raw/2018-10-03_22-28-03-bb2bce418b350dbf1af4cca68ed9e0a8.jpg)

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?

thanks

---

<div class="post-metadata">

**Author:** ![mbusby](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mbusby/32/121336_2.png) [@mbusby](https://forum.ionicframework.com/u/mbusby)\
**Post date:** [October 4, 2018, 3:47am UTC](https://forum.ionicframework.com/t/ionic-cordova-build-android/143628/2 "2018-10-04T03:47:32Z")

</div>

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`

```auto
<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: [https://github.com/jeduan/cordova-plugin-facebook4/issues/599#issuecomment-355259914](https://github.com/jeduan/cordova-plugin-facebook4/issues/599#issuecomment-355259914)

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 19, 2021, 9:13pm UTC](https://forum.ionicframework.com/t/ionic-cordova-build-android/143628/3 "2021-07-19T21:13:50Z")

</div>

Closed on July 19, 2021, 9:13pm UTC


