Splunk AppDynamics

Error trying to import AppD plugin

Ulises_Martine1
Engager

Hi team,

I'm am just trying to import the Appd plugin inside an android library:

apply plugin: 'com.android.library'
apply plugin: 'adeum' // this line added for AppDynamics

But always with this error:

A problem occurred configuring the project ':mylibrary'.
> Failed to notify the project evaluation listener.
> Transforms with scopes '[EXTERNAL_LIBRARIES, SUB_PROJECTS]' cannot be applied to library projects.
> Cannot cast object 'extension 'android'' with class 'com.android.build.gradle.LibraryExtension_Decorated' to class 'com.android.build.gradle.AppExtension'

I tried with a bunch of versions of Gradle and the plugin without a different outcome:

dependencies {
classpath 'com.android.tools.build:gradle:4.0.0'
classpath 'com.appdynamics:appdynamics-gradle-plugin:20.7.1' // this line added for AppDynamics


From the 3.0.X of Gradle till the last one 4.1.0 (October 2020 )

From the plugin version --- 4.5.X till 20.10.2

Hope someone can help me with this issue 🙂

^ Edited by @Ryan.Paredez. I want to note this post was split off from this conversation: https://community.appdynamics.com/t5/End-User-Monitoring-EUM/Does-the-adeum-plugin-supports-library-...

Labels (1)
0 Karma
1 Solution

iamryan
Community Manager
Community Manager

Hi all,

@Ulises.Martinez Uribe reached out to support and this was their response.

The AppDynamics Gradle plugin is complaining that it is being applied to a library, which is not supported. We only work with apps. Our instrumentation will be applied to any library that's linked in.

View solution in original post

iamryan
Community Manager
Community Manager

Hi all,

@Ulises.Martinez Uribe reached out to support and this was their response.

The AppDynamics Gradle plugin is complaining that it is being applied to a library, which is not supported. We only work with apps. Our instrumentation will be applied to any library that's linked in.

Ulises_Martine1
Engager

Hi Team !!!

In fact I reached support and they told me that the android plugin is complaining that it is being applied to a library, which is not supported..

Why I was trying to instrument a library ?  well this is a specific use case that is not in the Appdynamics supported use cases...

The use case is the next one... My customer is a credit card payment system that allow other apps to import their libraries and use that functionality in their own apps (imagine you are a retail company and wants to implement credit card payment)

So that looks like a weird case, and the main questions are...

1.- who is gonna pay for the license ?

2.- who should be on charge of that monitoring.. ?

So the AppDy support team just told me that for that kind of things, we can instrument just the app not an independent library ....

end of the story 🙂

Get Updates on the Splunk Community!

Splunk Observability Synthetic Monitoring - Resolved Incident on Detector Alerts

We’ve discovered a bug that affected the auto-clear of Synthetic Detectors in the Splunk Synthetic Monitoring ...

Video | Tom’s Smartness Journey Continues

Remember Splunk Community member Tom Kopchak? If you caught the first episode of our Smartness interview ...

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud?

3-2-1 Go! How Fast Can You Debug Microservices with Observability Cloud? Learn how unique features like ...