PexWallpapers icon indicating copy to clipboard operation
PexWallpapers copied to clipboard

Hilt issue / Build Exception

Open ishdemon opened this issue 3 years ago • 2 comments

Exception is: org.gradle.api.ProjectConfigurationException: A problem occurred configuring project ':data'. at org.gradle.configuration.project.LifecycleProjectEvaluator.wrapException(LifecycleProjectEvaluator.java:75) at org.gradle.configuration.project.LifecycleProjectEvaluator.addConfigurationFailure(LifecycleProjectEvaluator.java:68) at org.gradle.configuration.project.LifecycleProjectEvaluator.access$400(LifecycleProjectEvaluator.java:51)

The Hilt Android Gradle plugin is applied but no com.google.dagger:hilt-android dependency was found.` In Data module. Apparently its reported before ..tried to fix it but so far no luck. https://github.com/google/dagger/issues/2661

ishdemon avatar Aug 11 '22 17:08 ishdemon

Any luck?

ali-digitify avatar Aug 29 '22 20:08 ali-digitify

none.. Tried diff versions.. Applied

const val hiltCoreBase = "com.google.dagger:dagger:${Versions.hilt}"
const val hiltCoreCompiler = "com.google.dagger:dagger-compiler:${Versions.hilt}"

Still no luck. This project uses Plugin DSL..no idea if thats the issue..

ishdemon avatar Sep 12 '22 17:09 ishdemon

@ali-digitify comment this line id(Plugins.DAGGER_HILT) in data module's build.gradle once & sync once. It should build successful. then Uncomment it & sync again.

Also dont forget to have pex_api_access_key="2xxxxxxxxxxxxxxxxxxxxxxx"

ishdemon avatar Sep 19 '22 20:09 ishdemon