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

Dagger Hiltでannotation classの依存解決に失敗する #14

Closed
CASL0 opened this issue Jul 20, 2024 · 4 comments
Closed

Dagger Hiltでannotation classの依存解決に失敗する #14

CASL0 opened this issue Jul 20, 2024 · 4 comments

Comments

@CASL0
Copy link
Owner

CASL0 commented Jul 20, 2024

エラー

> Task :app:hiltJavaCompileRelease FAILED
エラー: ComponentProcessingStep was unable to process 'jp.co.casl0.android.simpleappblocker.AppBlockerApplication_HiltComponents.SingletonC' because 'jp.co.casl0.android.simpleappblocker.core.common.di.IoDispatcher' could not be resolved.

  Dependency trace:
      => element (CLASS): jp.co.casl0.android.simpleappblocker.core.data.di.RepositoryModule
      => element (METHOD): provideAllowlistRepository(jp.co.casl0.android.simpleappblocker.core.data.datasource.AllowlistDataSource,kotlinx.coroutines.CoroutineDispatcher)
      => element (PARAMETER): defaultDispatcher
      => annotation: @IoDispatcher
      => type (ERROR annotation type): jp.co.casl0.android.simpleappblocker.core.common.di.IoDispatcher

  If type 'jp.co.casl0.android.simpleappblocker.core.common.di.IoDispatcher' is a generated type, check above for compilation errors that may have prevented the type from being generated. Otherwise, ensure that type 'jp.co.casl0.android.simpleappblocker.core.common.di.IoDispatcher' is on your classpath.
エラー1個
@CASL0
Copy link
Owner Author

CASL0 commented Jul 20, 2024

daggerでも報告されている

google/dagger#4049

@CASL0
Copy link
Owner Author

CASL0 commented Jul 21, 2024

とりあえずagpのバージョンを下げて様子を見る

@CASL0
Copy link
Owner Author

CASL0 commented Jul 21, 2024

gradle8.4系から上記のエラーが発生する

なので8.3系を使う

@CASL0
Copy link
Owner Author

CASL0 commented Jul 21, 2024

agp 8.3.2でビルドし問題なかった

@CASL0 CASL0 closed this as completed Jul 21, 2024
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

1 participant