# Flutter Dynatrace plugin fails to build

**URL:** <https://community.dynatrace.com/t/flutter-dynatrace-plugin-fails-to-build/42374>\
**Category:** Real User Monitoring\
**Tags:** real-user-monitoring-classic, android, ios, gradle\
**Created:** [October 31, 2023, 9:00am UTC](https://community.dynatrace.com/t/flutter-dynatrace-plugin-fails-to-build/42374 "2023-10-31T09:00:36Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Mgeldenhuys](https://avatars.discourse-cdn.com/v4/letter/m/77aa72/32.png) [@Mgeldenhuys](https://community.dynatrace.com/u/Mgeldenhuys)\
**Post date:** [October 31, 2023, 9:00am UTC](https://community.dynatrace.com/t/flutter-dynatrace-plugin-fails-to-build/42374/1 "2023-10-31T09:00:36Z")

</div>

I am trying to instrument our flutter app with the provided instructions

Pub spec yaml contains

```markup
dependencies:
  flutter:
    sdk: flutter
  dynatrace_flutter_plugin: ^3.277.1

```

The dynatrace config file is located in the main folder as requested, but the Android project breaks with

```markup
FAILURE: Build failed with an exception.

* What went wrong:
Dynatrace Android Gradle plugin version 8.277.1.1003 and OneAgent version 8.223.1.1003 are not compatible

```

I have tried running the command requested on a windows as well as a mac device

```markup
dart run dynatrace_flutter_plugin

```

This does not fix the problem.

I have also tried running flutter clean, deleting gradle caches, etc but to no avail.&nbsp;  
There is no way to set the OneAgent version from what I can tell in the Android project or the flutter project. Where would this be located? Is there something else I can try?

---

_[View the full topic](https://community.dynatrace.com/t/flutter-dynatrace-plugin-fails-to-build/42374)._
