# The Dynatrace Android Gradle Plugin can only be applied to Android application projects

**URL:** <https://community.dynatrace.com/t/the-dynatrace-android-gradle-plugin-can-only-be-applied-to-android-application-projects/35729>\
**Category:** Real User Monitoring\
**Tags:** android, mobile-monitoring\
**Created:** [July 4, 2022, 4:32pm UTC](https://community.dynatrace.com/t/the-dynatrace-android-gradle-plugin-can-only-be-applied-to-android-application-projects/35729 "2022-07-04T16:32:01Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Thomas\_Wirth1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/thomas_wirth1/32/1776_2.png) [@Thomas\_Wirth1](https://community.dynatrace.com/u/Thomas_Wirth1)\
**Post date:** [February 13, 2024, 4:15pm UTC](https://community.dynatrace.com/t/the-dynatrace-android-gradle-plugin-can-only-be-applied-to-android-application-projects/35729/7 "2024-02-13T16:15:57Z")

</div>

Hey kasdev,  
The Dynatrace Android Gradle plugin can only be used in projects that use the Android Gradle plugin to build an Android app. It is not possible to instrument an (independent) library project, because this use case is not supported by Dynatrace.

Can you share the exact error message? So we know the exact problem that the Dynatrace plugin detected.  
You can also create a support ticket and the support team will help you troubleshoot the error message.

---

_[View the full topic](https://community.dynatrace.com/t/the-dynatrace-android-gradle-plugin-can-only-be-applied-to-android-application-projects/35729)._
