Dagger 2.38 breaks build with AGP 7.0.0-beta05
See original GitHub issueUnable to find method 'com.android.build.api.variant.ApplicationVariant.getAndroidTest()Lcom/android/build/api/variant/AndroidTest;'
com.android.build.api.variant.ApplicationVariant.getAndroidTest()Lcom/android/build/api/variant/AndroidTest;
Downgrading to AGP 7.0.0-beta04 solves the issue.
Dagger’s 2.38 release notes do say that any version older than AGP 7.0.0-beta04 would break, but beta05 is newer.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:14
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Gradle Build Setup - Dagger
When the Android Gradle plugin (AGP) version used in the project is less than 4.2, then the Hilt Gradle plugin by default, will...
Read more >AGP 7.2.0-alpha05 breaks builds that use the Navigation Safe ...
Updating Android Gradle Plug-in from 7.2.0-alpha04 to 7.2.0-alpha05 breaks the build as the Safe Args plug-in no longer works. This project uses AGP...
Read more >Unable to find method ''void com.android.build.api.extension ...
In my case AGP 7.0.0 builded successfully with Hilt 2.37 ... just update to latest version of dagger hilt i,e, currently(2.38.1).
Read more >AGP 7.0: Next major release for the Android Gradle plugin
What this means is that only major version changes will break API compatibility. We intend to release one major version each year, right...
Read more >Android Gradle plugin release notes - Android Developers
The Android Studio build system is based on Gradle, and the Android Gradle ... The release after AGP 4.2 will be version 7.0...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Same error with 7.0.0-rc01
A 2.38.1 release will be done soon that contains this fix along with the fix for https://github.com/google/dagger/issues/2784.