Ionic cordova build android not work

Hi,

I’m trying to build a legacy project (ionic v2). When I execute ionic coda build android, I get the next error:

Unable to graft xml at selector “/manifest/application/provider” from “/Users/…/platforms/android/app/src/main/AndroidManifest.xml” during config install

Any ideas?

My ionic info:

Ionic:

   Ionic CLI          : 5.4.16 (/usr/local/lib/node_modules/ionic)
   Ionic Framework    : ionic-angular 2.0.0-rc.4
   @ionic/app-scripts : 3.2.4

Cordova:

   Cordova CLI       : 8.1.2 (cordova-lib@8.1.1)
   Cordova Platforms : android 9.1.0, iOS 6.2.0
   Cordova Plugins   : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 20 other plugins)

Utility:

   cordova-res                          : not installed
   native-run (update available: 1.7.0) : 1.6.0

System:

   Android SDK Tools : 26.1.1 (/Users/.../Library/Android/sdk)
   ios-sim           : 8.0.2
   NodeJS            : v10.13.0 (/usr/local/bin/node)
   npm               : 6.4.1
   OS                : macOS Monterey
   Xcode             : Xcode 13.4.1 Build version 13F100

Thanks