You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(android): resolve AGP variant data inside onVariants, not afterEvaluate
AGP Variant objects (outputs, applicationId, versionCode/versionName
providers) are only valid inside the onVariants callback. Using them
inside project.afterEvaluate{} can trigger late variant API access errors.
Pre-extract all AGP-dependent data as plain values before registering
the afterEvaluate block:
- variantName (String) from v.name
- variantApplicationId (String) from v.applicationId.get()
- variantOutputsData (List<Map>) from v.outputs with all providers resolved
Update extractCurrentVariants() to accept these plain values instead of
the AGP Variant object so no AGP API is called outside onVariants.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments