Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Conversation

@lucasferreiramachado
Copy link

From Issue 1: Branch Master is not the starting point
related by @evowizz . Thanks!

Problem to solve:

According to page #2 of the codelab, we are supposed to add Hilt to the project ourselves. However, as seen in the following lines, Hilt is already included in this project in Master.

android-dagger-to-hilt/build.gradle Line 5 in 267db26

ext.hilt_version = '2.28-alpha'   

android-dagger-to-hilt/build.gradle Line 13 in 267db26

classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version" 

android-dagger-to-hilt/app/build.gradle Line 9 in 267db26

apply plugin: 'dagger.hilt.android.plugin' 

android-dagger-to-hilt/app/build.gradle Lines 71 to 73 in 267db26

// Hilt dependencies
implementation "com.google.dagger:hilt-android:$hilt_version" 
kapt "com.google.dagger:hilt-android-compiler:$hilt_version"  

Moreover, this also prevent us from running the project at its starting point, because Hilt produces the following issue:

 
com\example\android\dagger\di\AppSubcomponents.java:7: error: [Hilt]
public final class AppSubcomponents {
             ^
  com.example.android.dagger.di.AppSubcomponents must also be annotated with @InstallIn.
  [Hilt] Processing did not complete. See error above for details

Solution proposal:

  1. Remove Hilt dependencies.
  2. Setup Dagger dependencies.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant