question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dagger 2.38 breaks build with AGP 7.0.0-beta05

See original GitHub issue
Unable 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:closed
  • Created 2 years ago
  • Reactions:14
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

22reactions
michaelnimbscommented, Jul 20, 2021

Same error with 7.0.0-rc01

8reactions
danysantiagocommented, Jul 27, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found