cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

No Buildscript block in build.gradle in Dynatrace Flutter exception

gustavocarvalho
Newcomer

After following the described steps to set up a Flutter application with Dynatrace, an error occurred when executing the command "dart run dynatrace_flutter_plugin". Here is the output:

Building package executable...
Built dynatrace_flutter_plugin:dynatrace_flutter_plugin.
[2024-04-05 16:32:40][INFO][DYNATRACE]: Dynatrace Flutter Plugin 3.287.1
[2024-04-05 16:32:40][INFO][DYNATRACE]: Trying to read configuration file: dynatrace.config.yaml
[2024-04-05 16:32:40][ERROR][DYNATRACE]: Exception: Could not find Buildscript block in build.gradle.
[2024-04-05 16:32:40][INFO][DYNATRACE]: Finished configuration of Flutter application ..

Flutter doctor output:

[✓] Flutter (Channel stable, 3.19.5, on macOS 14.4.1 23E224 darwin-arm64, locale en-PT)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.2)
[✓] IntelliJ IDEA Community Edition (version 2023.2.3)
[✓] VS Code (version 1.87.2)
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

 

To confirm, I created an application from scratch, and the error persists. On iOS, it works normally.

2 REPLIES 2

matthias_hochri
Dynatrace Pro
Dynatrace Pro

The format of the build gradle file has changed and is not compatible anymore to our automated script. I will update this post when this issue has been fixed.

HannahM
Dynatrace Leader
Dynatrace Leader

This has been fixed in the latest update, Dynatrace flutter plugin version 3.287.2
https://pub.dev/packages/dynatrace_flutter_plugin/changelog

Synthetic SME and community advocate.

Featured Posts