Problem when building for Android

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:

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:

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


    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


    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.


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.