Closed ZacSweers closed 3 years ago
This is a duplicate of #2618, its fixed but we haven't made a release, if you want to get unblocked you can use snapshot versions of Hilt from https://oss.sonatype.org/content/repositories/snapshots/com/google/dagger/
Actually, let me keep this open until we do a release, to help people find it. Specially since there has been a few other dupes (https://github.com/google/dagger/issues/2631, https://github.com/google/dagger/issues/2632)
is it released ?, still having the issue
The fix is not in 2.35.1. If you need to use the AGP 7.1.0 alpha and Hilt together, you can use a snapshot. See https://github.com/google/dagger/issues/2631#issuecomment-844896660.
This should now be released in 2.36.
@Chang-Eric @danysantiago I still have the issue https://github.com/google/dagger/issues/2661
Just updated to AGP 7.0.0-beta04 and we're still (again?) having this issue.
* What went wrong:
com/android/build/api/extension/AndroidComponentsExtension$DefaultImpls
> com.android.build.api.extension.AndroidComponentsExtension$DefaultImpls
* Try:
Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Exception is:
java.lang.NoClassDefFoundError: com/android/build/api/extension/AndroidComponentsExtension$DefaultImpls
at dagger.hilt.android.plugin.HiltGradlePlugin.configureBytecodeTransformASM(HiltGradlePlugin.kt:258)
at dagger.hilt.android.plugin.HiltGradlePlugin.configureHilt(HiltGradlePlugin.kt:89)
at dagger.hilt.android.plugin.HiltGradlePlugin.access$configureHilt(HiltGradlePlugin.kt:59)
at dagger.hilt.android.plugin.HiltGradlePlugin$apply$1.execute(HiltGradlePlugin.kt:66)
at dagger.hilt.android.plugin.HiltGradlePlugin$apply$1.execute(HiltGradlePlugin.kt:59)
...
We're on 7.0.0-beta04 and Dagger/Hilt 2.37.
@jossiwolf sorry about that, you are seeing a new version of this issue, see https://github.com/google/dagger/issues/2700
this fixed the prob for me
classpath 'com.android.tools.build:gradle:7.1.0-alpha02'
hilt_version = '2.37'
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
I think AGP of 7.1.0-alpha02
is crucial here.
Works with gradle-7.1-bin.zip
as well.
Running hilt's Gradle plugin with the mentioned AGP version results in this failure during configuration