Cannot use new compiler with dagger.hilt.android.plugin
See original GitHub issueVersion: 2.29
As per release notes of Dagger 2.29 (https://github.com/google/dagger/releases/tag/dagger-2.29)
I’ve tried to change the compiler
dependency to:
kapt "com.google.dagger:hilt-compiler:2.29-alpha"
This however doesn’t work, if I have applied dagger.hilt.android.plugin
. It says:
The Hilt Android Gradle plugin is applied but no com.google.dagger:hilt-android-compiler dependency was found.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:16
- Comments:14
Top Results From Across the Web
The Hilt Android Gradle plugin is applied but ... - Stack Overflow
A simple fix is to comment out the id(BuildPlugins.hiltPlugin) if you are using plugins{} or apply plugin BuildPlugins.hiltPlugin , try to sync ...
Read more >Fix Hilt Android Gradle plugin is applied but no ... - YouTube
Sometimes, when importing an Hilt Android project, you get this error: Hilt Android Gradle plugin is applied but no ...
Read more >Dependency injection with Hilt | Android Developers
... Dependency injection with Hilt · Hilt in multi-module apps · Use Hilt with other Jetpack libraries · Hilt testing guide · Hilt...
Read more >Dagger Hilt in Android with Example - GeeksforGeeks
In order to use Dagger Hilt, we need to add the dependencies for it. First, we will add the classpath to our project-level...
Read more >Dagger.Hilt TLDR (updated for 2.31.2-alpha) | by Lukas Vyletel
classpath "com.google.dagger:hilt-android-gradle-plugin:2.31.2-alpha" ... Annotate constructor of the dependency you want to inject using @Inject annotation ...
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
Still having this issue on a multi-module android project with android gradle plugin 4.1.0
Thanks! We can send out a patch for that soon.
In the mean time, you can continue using
com.google.dagger:hilt-android-compiler
. The newhilt-compiler
artifact is just a rename.