14 Apr 2026
01:18 AM
- last edited on
14 Apr 2026
07:36 AM
by
MaciejNeumann
Hello there,
I have react native app with android folder having build.gradle.kts when I do npx instrumentdynatrace gradle=android/build.gradle.kts it fails to set up android side of the project and give error .gradle file not found even though it is there.
Solved! Go to Solution.
14 Apr 2026 11:37 AM
Hi,
build.gradle.kts itself should be supported. Android Gradle plugin supports Kotlin DSL and must be applied in the top-level Android build file, either build.gradle or build.gradle.kts.
Here documentation:
Dynatrace Android Gradle plugin
But For React Native,in documentation you can see this:
npx instrumentDynatracefrom the project root and let it apply the configuration from dynatrace.config.js, instead of passing the Gradle file manually.
So this looks more like a limitation or bug in the instrumentDynatrace CLI when using the explicit gradle=android/build.gradle.kts argument, rather than lack of .kts support in Dynatrace itself. I’d recommend:
21 Apr 2026 08:22 AM
The issue is resolved, please expect it in the version 2.337.1
Featured Posts