-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix incorrect wiring of the GoogleServicesTask #232
Conversation
In the process of making configuration of the GooglerServicesTask lazily configured, the registration of the generated outputs with the Android Gradle plugin was moved into the lazy task configuration. This only works if the google services task is configured before any of the tasks that consume it, which is not guaranteed, leading to the below issues. This change also removes the partial workaround of manually adding the task dependency to one of the consuming tasks. Issue: google#228 Also potentially related: google#228 Test: Manually verified that the wiring works correctly with AGP 7.4.0-alpha03 and Gradle 7.5-rc-1
https://b.corp.google.com/issues/237071883?pli=1 AGP: 7.2.1 The following Error was shown when building. I believe it is related to this CL.
|
Seeing that same error in firebase/quickstart-android#1385 |
The plugin version 4.3.5 seems to be working for now as 4.3.10 isn't supported for that Gradle version. |
Getting the same issue here with an older Gradle and AGP version: AGP: 4.2.2
|
Problem is not isolated to native development. Facing the same problem with flutter builds. 4.3.10 works, 4.3.12 doesn't. Seeing the number of comments above - is there an ETA on a fix? |
Getting the same problem as above:
Fixed by downgrading to |
Looks like a fix has been added but not released. |
Hey all 👋 |
In the process of making configuration of the GooglerServicesTask lazily
configured, the registration of the generated outputs with the Android
Gradle plugin was moved into the task configuration block. This only
works if the google services task is configured before any of the tasks
that consume it, which is not guaranteed, leading to the
This changes also removes the partial workaround of manually adding the
task dependency to one of the consuming tasks.
Issue: #228
Also potentially related: #228
Test: Manually verified that the wiring works correctly with AGP 7.4.0-alpha03 and Gradle 7.5-rc-1