android / codelab-android-hilt

Apache License 2.0
355 stars 188 forks source link

HiltComponents_SingletonC not generated #23

Closed victormpineda closed 3 years ago

victormpineda commented 3 years ago

After migrating mi project from dagger to Hilt (version 2.35), the code generated by Hilt is referencing a class that does not exists, so it cannot compile:

/Projects/android-app-users/app/build/generated/source/kapt/localhostDebug/com/example/android/Hilt_ExampleApp.java:20: error: cannot find symbol
      return DaggerExampleApp_HiltComponents_SingletonC.builder()
             ^
  symbol: variable DaggerExampleApp_HiltComponents_SingletonC

I've checked it in the build directory and the file does not exists. The rest of files generated by hilt seems ok. My application class is annotated with @HiltAndroidApp, but the code generated by hilt looks wrong.

limitAlltheir commented 2 years ago

I have same problem. How did u fix it?