Skip to content

Conversation

copybara-service[bot]
Copy link

Update Hilt's Gradle Plugin detection of AGP

Use both the base id 'com.android.base' and the base type 'com.android.build.gradle.api.AndroidBasePlugin' as to maximize compatibility on cases when one works and the other doesn't.

Fixes #4734

RELNOTES=Updated Hilt's Gradle Plugin detection of AGP to maximize compatibility and avoid the confusing 'The Hilt Android Gradle plugin can only be applied to an Android project.' error when the plugin is on an Android project.

Use both the base id 'com.android.base' and the base type 'com.android.build.gradle.api.AndroidBasePlugin' as to maximize compatibility on cases when one works and the other doesn't.

Fixes #4734

RELNOTES=Updated Hilt's Gradle Plugin detection of AGP to maximize compatibility and avoid the confusing 'The Hilt Android Gradle plugin can only be applied to an Android project.' error when the plugin is on an Android project.
PiperOrigin-RevId: 797326681
@copybara-service copybara-service bot merged commit 20adecb into master Aug 20, 2025
@copybara-service copybara-service bot deleted the test_796974468 branch August 20, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The Hilt Android Gradle plugin can only be applied to an Android project.
1 participant