Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error #4

Closed
4mSystems opened this issue Oct 10, 2021 · 2 comments
Closed

build error #4

4mSystems opened this issue Oct 10, 2021 · 2 comments

Comments

@4mSystems
Copy link

The Hilt Android Gradle plugin is applied but no com.google.dagger:hilt-android dependency was found.

@Mina-Mikhail
Copy link
Owner

The Hilt Android Gradle plugin is applied but no com.google.dagger:hilt-android dependency was found.

I'm currently working to solve this issue, but until i solve it, you can do a simple workaround to build the project,

plugins {
      id(Config.Plugins.androidApplication)
      id(Config.Plugins.kotlinAndroid)
      id(Config.Plugins.kotlinKapt)
      id(Config.Plugins.navigationSafeArgs)
      id(Config.Plugins.hilt)
}

inside plugins section in build.gradle.kts for app module, just commit the last line related to hilt plugin and build the project, after it success un-comment the line again and build the project and it will works will with you

@4mSystems
Copy link
Author

The Hilt Android Gradle plugin is applied but no com.google.dagger:hilt-android dependency was found.

I'm currently working to solve this issue, but until i solve it, you can do a simple workaround to build the project,

plugins {
      id(Config.Plugins.androidApplication)
      id(Config.Plugins.kotlinAndroid)
      id(Config.Plugins.kotlinKapt)
      id(Config.Plugins.navigationSafeArgs)
      id(Config.Plugins.hilt)
}

inside plugins section in build.gradle.kts for app module, just commit the last line related to hilt plugin and build the project, after it success un-comment the line again and build the project and it will works will with you

i comment all related hilt dependency and sync the project ,then uncomment hilt dependency and sync again it worked fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants