Background
AGP 9 transitions exclusively to the new DSL interfaces and hides the legacy variant API. Currently, the Flutter Gradle Plugin uses project.afterEvaluate to run the detectLowCompileSdkVersionOrNdkVersion check. We need to investigate whether this approach violates the new DSL rules or conflicts with modern Gradle configuration avoidance patterns.
Note: This specific migration may or may not be strictly required to support AGP 9, but it needs investigation to confirm compatibility and ensure it does not cause issues when opting into the new DSL.
Work
Background
AGP 9 transitions exclusively to the new DSL interfaces and hides the legacy variant API. Currently, the Flutter Gradle Plugin uses
project.afterEvaluateto run thedetectLowCompileSdkVersionOrNdkVersioncheck. We need to investigate whether this approach violates the new DSL rules or conflicts with modern Gradle configuration avoidance patterns.Note: This specific migration may or may not be strictly required to support AGP 9, but it needs investigation to confirm compatibility and ensure it does not cause issues when opting into the new DSL.
Work
project.afterEvaluatefor thedetectLowCompileSdkVersionOrNdkVersioncheck.