Skip to content

[all plugins] Conditionalize namespace in build.gradle due to No signature of method: build_[...].android() is applicable for argument types error with AGP <4.2 #125621

@stuartmorgan-g

Description

@stuartmorgan-g

We recently added namespace to all of our plugins' build.gradle files to make them compatible with AGP 8.0 (see #125181). I thought I had tested that this would be ignored with older versions of AGP, but it turns out that I only tested with AGP 4.2, and that's actually the first version where namespace works. Developers with AGP 4.1 (which flutter create used in the Flutter 2.x timeframe) and earlier are reporting being broken (#125607, #125605).

This tracks reverting the addition of namespace while we figure out how to move forward without breaking 4.1 and earlier.

Metadata

Metadata

Labels

P1High-priority issues at the top of the work lista: buildBuilding flutter applications with the toolc: regressionIt was better in the past than it is nowpackageflutter/packages repository. See also p: labels.platform-androidAndroid applications specifically

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions