Mina-Mikhail / Kotlin-Base-MVVM

💎 Android Base Project with Kotlin and MVVM applying clean architecture
124 stars 25 forks source link

build error #4

Closed 4mSystems closed 3 years ago

4mSystems commented 3 years ago

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

Mina-Mikhail commented 3 years ago

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 commented 3 years ago

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