I was trying to build a flutter plugin that would need to import the Instrumentation class to send metrics back to the SAAS platform. However, when I apply the adeum plugin in my build.gradle, an error occurs.
apply plugin: 'com.android.library'
apply plugin: 'adeum' // this line added for AppDynamics
* What went wrong:
A problem occurred configuring project ':flutter_appdynamics'.
> Failed to notify project evaluation listener.
> Transforms with scopes '[EXTERNAL_LIBRARIES, SUB_PROJECTS_LOCAL_DEPS, PROJECT_LOCAL_DEPS, SUB_PROJECTS]' cannot be applied to library projects.
> Cannot cast object 'com.android.build.gradle.LibraryExtension_Decorated@3131dac9' with class 'com.android.build.gradle.LibraryExtension_Decorated' to class 'com.android.build.gradle.AppExtension'
A similar case is found on github (https://github.com/piotrmadry/FirebaseTestLab-Android/issues/12), and the cause of it is that the plugin does not support LibrayExtension. So I would like to know does the adeum plugin only support AppExtension but not LibraryExtension?
... View more