# Problem when building for Android

**URL:** <https://forum.ionicframework.com/t/problem-when-building-for-android/144041>\
**Category:** ionic-v3\
**Created:** [October 9, 2018, 10:19am UTC](https://forum.ionicframework.com/t/problem-when-building-for-android/144041 "2018-10-09T10:19:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyrax80](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@Kyrax80](https://forum.ionicframework.com/u/Kyrax80)\
**Post date:** [October 9, 2018, 10:19am UTC](https://forum.ionicframework.com/t/problem-when-building-for-android/144041/1 "2018-10-09T10:19:30Z")

</div>

Hello, I am compiling for Android 7.0.0 and I MUST USE Cordova 7.1.0. So when I try to add the Android Platform I get the following error:

```auto
Error: Unable to graft xml at selector "/manifest" from "C:\mm\platforms\android\app\src\main\res\xml\config.xml" during config install

```

With Cordova 8 I don’t get this error but I have to use Cordova 7.1.0, what can I do?

My Ionic info:

```auto
cli packages: (C:\Users\UsuarioDT01\AppData\Roaming\npm\node_modules)

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

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.2.0
    Cordova Platforms : android 6.4.0
    Ionic Framework : ionic-angular 3.9.2

System:

    Android SDK Tools : 26.1.1
    Node : v8.11.1
    npm : 5.6.0
    OS : Windows 10

Environment Variables:

    ANDROID_HOME : C:\Users\UsuarioDT01\AppData\Local\Android\Sdk
    HTTP_PROXY : not set
    http_proxy : not set
    HTTPS_PROXY : not set
    https_proxy : not set
    IONIC_HTTP_PROXY : not set
    PROXY : not set
    proxy : not set

Misc:

    backend : pro

```

After getting this error it changed my Android 7.0.0 for Android 6.4.0 for a reason that I don’t know.

Help please.

Thanks.

---

<div class="post-metadata">

**Author:** ![Kyrax80](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@Kyrax80](https://forum.ionicframework.com/u/Kyrax80)\
**Post date:** [October 17, 2018, 12:02pm UTC](https://forum.ionicframework.com/t/problem-when-building-for-android/144041/2 "2018-10-17T12:02:37Z")

</div>

Okay problem is that I needed to use Cordova 7.1.0 and I was using the latest version for Ionic Pro which isn’t compatible with it, so I just had to downgrade my Ionic Pro plugin version.

---

<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/problem-when-building-for-android/144041/3 "2021-07-19T21:13:34Z")

</div>

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


