AppD Integration with Capacitor App

I’m trying to integrate AppDynamics with an Ionic/Angular Android App.
Since AppDynamics doesn’t have a capacitor version of the plugin I’m forced to use Cordova. On a new application, I add the AppD plugin using the following command

npm install appd-plugin-eum-mobile

When I try to build the Android App I get the following error

FAILURE: Build failed with an exception.

  • Where:
    Script ‘C:.…\node_modules\appd-plugin-eum-mobile\android_hooks\build-extras.gradle’ line: 1

  • What went wrong:
    A problem occurred evaluating script.

Plugin with id ‘adeum’ not found.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
Use ‘–warning-mode all’ to show the individual deprecation warnings.
See Command-Line Interface

BUILD FAILED in 225ms

AppD has a gradle plugin that I added into the build gradle main file
https://mvnrepository.com/artifact/com.appdynamics/appdynamics-gradle-plugin

But I get the following error
Cannot cast object ‘extension ‘android’’ with class ‘com.android.build.gradle.LibraryExtension_Decorated’ to class ‘com.android.build.gradle.internal.dsl.BaseAppModuleExtension’