Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
11-02-2020 03:01 PM - last edited on 11-04-2020 07:22 AM by Ryan.Paredez
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-...
Solved! Go to Solution.
11-13-2020 11:01 AM
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.
Thanks,
Ryan, Cisco AppDynamics Community Manager
Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Check out Observabiity in Action
new deep dive videos weekly in the Knowledge Base.
03-24-2021 04:51 PM
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
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form