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.

Cannot use new compiler with dagger.hilt.android.plugin

See original GitHub issue

Version: 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:closed
  • Created 3 years ago
  • Reactions:16
  • Comments:14

github_iconTop GitHub Comments

7reactions
ThanosFishermancommented, Oct 13, 2020

Still having this issue on a multi-module android project with android gradle plugin 4.1.0

5reactions
bcorsocommented, Sep 10, 2020

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 new hilt-compiler artifact is just a rename.

Read more comments on GitHub >

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

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