This error message is generated by the Dynatrace Android Gradle plugin, when it can’t complete all configuration steps and therefore assumes that it is applied in an unsupported project structure. This additional verification was introduced with version 8.237.1.1004.
The upcoming plugin version 8.257 contains adjustments to support additional Gradle features, including the removal of the mentioned verification. It will be published in January 2023.